Skip to content
Snippets Groups Projects
Commit 09e99fda authored by NGUYEN Do Duc Anh's avatar NGUYEN Do Duc Anh
Browse files

update location for dhcp unikernel and others

parent 4bc1f4be
Branches
No related tags found
No related merge requests found
......@@ -225,8 +225,8 @@ if __name__ == "__main__":
array_ubuntu_base = []
array_ubuntu_intermediate = []
router_0 = Node(1, 1, "", ROUTER_TYPE)
ubuntu_server = Node(1, 1, GNS3Manager.create_ubuntu_server(0, -200), UBUNTU_TYPE)
ubuntu_vc_server = Node(1, 1, GNS3Manager.create_ubuntu_vc_server(0, -300), UBUNTU_VC_SERVER_TYPE)
ubuntu_server = Node(1, 1, GNS3Manager.create_ubuntu_server(1000, 1200), UBUNTU_TYPE)
ubuntu_vc_server = Node(1, 1, GNS3Manager.create_ubuntu_vc_server(-1200, -1200), UBUNTU_VC_SERVER_TYPE)
for exist_node in array_existing_nodes:
if exist_node[1] == "R1":
......@@ -262,12 +262,12 @@ if __name__ == "__main__":
array_ubuntu_base.append(Node(1, MAX_SIZE_OF_UBUNTU_BASE_PORT, GNS3Manager.create_ubuntu_base(x_temp, y_temp), UBUNTU_BASE_TYPE))
# create dhcp unikernel
x_local = -300
y_local = -100
x_local = -1000
y_local = -1400
step = 100
for i in range(NUM_DHCP_UNIKERNEL):
y_temp = y_local + step * (i // 1)
x_temp = x_local + step * (i % 1)
x_temp = x_local + step
y_temp = y_local
array_dhcp_unikernel.append(
Node(1, 1, GNS3Manager.create_unikernel(x_temp, y_temp, DHCP_UNIKERNEL_TYPE), DHCP_UNIKERNEL_TYPE))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment