Skip to content
Snippets Groups Projects
Commit 91a73bd1 authored by Bob Lantz's avatar Bob Lantz
Browse files

use isinstance( intf, OVSIntf )

parent c069542c
No related branches found
No related tags found
No related merge requests found
...@@ -1150,7 +1150,7 @@ def connected( self ): ...@@ -1150,7 +1150,7 @@ def connected( self ):
@staticmethod @staticmethod
def patchOpts( intf ): def patchOpts( intf ):
"Return OVS patch port options (if any) for 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 # Ignore if it's not a patch link
return '' return ''
intf1, intf2 = intf.link.intf1, intf.link.intf2 intf1, intf2 = intf.link.intf1, intf.link.intf2
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment