use isinstance( intf, OVSIntf )
This commit is contained in:
1 parent
c916f3ee1b
commit
c5f68226b8
1 file changed
+1
-1
+1
-1
@@ -1148,7 +1148,7 @@ class OVSSwitch( Switch ):
|
||||
@staticmethod
|
||||
def patchOpts( intf ):
|
||||
"Return OVS patch port options (if any) for intf"
|
||||
if type( intf ) is not OVSIntf:
|
||||
if not isinstance( intf, OVSIntf ):
|
||||
# Ignore if it's not a patch link
|
||||
return ''
|
||||
intf1, intf2 = intf.link.intf1, intf.link.intf2
|
||||
|
||||
Reference in new issue
Block a user