forked from uncloud/uncloud
commit stuff before dominique does
This commit is contained in:
parent
8888f5d9f7
commit
8e839aeb44
2 changed files with 3 additions and 7 deletions
|
|
@ -37,11 +37,7 @@ class VXLANBridge(object):
|
|||
self.config['vni_hex'] = "{:x}".format(vni)
|
||||
self.config['multicast_address'] = self.multicast_network[vni]
|
||||
|
||||
#try:
|
||||
self.config['route_network'] = ipaddress.IPv6Network(route)
|
||||
#except Exception as e:
|
||||
# print("Ahhhhhhhhhhhhhhhhh, die: {}".format(e))
|
||||
|
||||
self.config['route'] = route
|
||||
|
||||
self.config['uplinkdev'] = uplinkdev
|
||||
|
|
@ -69,7 +65,6 @@ class VXLANBridge(object):
|
|||
def _execute_cmd(self, cmd_string, **kwargs):
|
||||
cmd = cmd_string.format(**self.config, **kwargs)
|
||||
log.info("Executing: {}".format(cmd))
|
||||
print("Executing: {}".format(cmd))
|
||||
subprocess.run(cmd.split())
|
||||
|
||||
class ManagementBridge(VXLANBridge):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue