示例#1
0
 def addIntf(self, intf, rename=False, **kwargs):
     "Add (and reparent) an interface"
     print 'add interface **', intf
     OVSSwitch.addIntf(self, intf, **kwargs)
     intf.node = self
     if rename:
         self.renameIntf(intf)
示例#2
0
 def addIntf( self, intf, rename=False, **kwargs ):
     "Add (and reparent) an interface"
     OVSSwitch.addIntf( self, intf, **kwargs )
     intf.node = self
     if rename:
         self.renameIntf( intf )
示例#3
0
 def addIntf(self, intf, rename=False, newname='', **kwargs):
     "Add (and reparent) an interface"
     OVSSwitch.addIntf(self, intf, **kwargs)
     intf.node = self
     if rename:
         self.renameIntf(intf, newname=newname)