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 )
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 )
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)