'>' not supported between instances of 'NoneType' and 'int'

It won’t let me delete old network card out, I already swapped out motherboard…

        Traceback (most recent call last):

File “/opt/rockstor/src/rockstor/rest_framework_custom/generic_view.py”, line 41, in _handle_exception
yield
File “/opt/rockstor/src/rockstor/storageadmin/views/network.py”, line 548, in delete
if nco.bridgeconnection_set.first() > 0: # If docker network
TypeError: ‘>’ not supported between instances of ‘NoneType’ and ‘int’

I suspect until the devs have time to incorporate a fix for “non-existing” network interfaces, you will have to drop to the command line and see whether you can remove it this way, if your entry on the UI still shows a UUID in the second column:

nmcli c delete <uuid>

@phillxnet, @Flox any different approaches you can suggest?

2 Likes

For reference, I have created an issue on the github repository for tracking:

2 Likes

How can view list of my network lan and I try able delete it…

Anthony

If the UUID is visible on the UI (e.g. like this):

You can try to delete it via (using the above example):

ncmli c delete "0ce03e86-9a19-3402-bc67-4a8d01443a22"

You can also use the connection name:

nmcli c delete "Wired connection 3"

I believe, if you still have the underlying “phantom” device showing (in this example eth2) then you can also try to delete it using

nmcli device delete "eth2"

to list the connections using the command line you can just put in:

nmcli connection

that should give you a list of the defined connections you have.

2 Likes

Successful removed and fixed…

-= Thank you !! =-

2 Likes