Skip to content

Commit

Permalink
missing import
Browse files Browse the repository at this point in the history
  • Loading branch information
Kidel committed Mar 13, 2019
1 parent c52a2f2 commit 7787d91
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/python/netkit_commons.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import utils as u
import depgen as dpg
from collections import OrderedDict
import ipaddress

DEBUG = True
PRINT = False
Expand Down Expand Up @@ -190,7 +191,7 @@ def create_commands(machines, links, options, metadata, path, execbash=False, no
for link in links:
subnet = ipaddress.ip_address("172.19.0.0") + (network_counter * 256 * 256)
gateway = ipaddress.ip_address("172.19.0.1") + (network_counter * 256 * 256)
create_network_commands.append(create_network_template + prefix + link + " --subnet=" + str(subnet) + "/16 --gateway=" + str(subnet))
create_network_commands.append(create_network_template + prefix + link + " --subnet=" + str(subnet) + "/16 --gateway=" + str(gateway))
lab_links_text += prefix + link + ' '
network_counter += 1
create_network_commands.append(os.path.join(os.environ['NETKIT_HOME'], 'brctl_config ' + prefix + link))
Expand Down

0 comments on commit 7787d91

Please sign in to comment.