use isinstance( intf, OVSIntf )

This commit is contained in:
Bob Lantz
2015-01-15 02:07:00 -08:00
parent c069542c5c
commit 91a73bd191
+1 -1
View File
@@ -1150,7 +1150,7 @@ class OVSSwitch( Switch ):
@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