Esempio n. 1
0
 def rename( self, newname ):
     "Rename interface"
     # If TapBridge is installed in ns-3, but ns-3 has not connected to the Linux tap interface yet...
     if self.nsInstalled and not self.isConnected():
         # ...change device name in TapBridge to the new one.
         self.tapbridge.SetAttribute ( "DeviceName", ns.core.StringValue( newname ) )
     Intf.rename( self, newname )
Esempio n. 2
0
 def rename( self, newname ):
     "Rename interface"
     # If TapBridge is installed in ns-3, but ns-3 has not connected to the Linux tap interface yet...
     if self.nsInstalled and not self.isConnected():
         # ...change device name in TapBridge to the new one.
         self.tapbridge.SetAttribute ( "DeviceName", ns.core.StringValue( newname ) )
     Intf.rename( self, newname )
Esempio n. 3
0
 def rename( self, newname ):
     "Rename interface"
     if self.nsInstalled and not self.isConnected():
         self.tapbridge.SetAttribute ( "DeviceName", ns.core.StringValue( newname ) )
     Intf.rename( self, newname )
Esempio n. 4
0
 def rename(self, newname):
     "Rename interface"
     if self.nsInstalled and not self.isConnected():
         self.tapbridge.SetAttribute("DeviceName",
                                     ns.core.StringValue(newname))
     Intf.rename(self, newname)