#2450 change link definition schema
This commit is contained in:
@@ -925,43 +925,43 @@ simulation:
|
|||||||
type: DNSClient
|
type: DNSClient
|
||||||
|
|
||||||
links:
|
links:
|
||||||
- endpoint_a_ref: router_1
|
- endpoint_a_hostname: router_1
|
||||||
endpoint_a_port: 1
|
endpoint_a_port: 1
|
||||||
endpoint_b_ref: switch_1
|
endpoint_b_hostname: switch_1
|
||||||
endpoint_b_port: 8
|
endpoint_b_port: 8
|
||||||
- endpoint_a_ref: router_1
|
- endpoint_a_hostname: router_1
|
||||||
endpoint_a_port: 2
|
endpoint_a_port: 2
|
||||||
endpoint_b_ref: switch_2
|
endpoint_b_hostname: switch_2
|
||||||
endpoint_b_port: 8
|
endpoint_b_port: 8
|
||||||
- endpoint_a_ref: switch_1
|
- endpoint_a_hostname: switch_1
|
||||||
endpoint_a_port: 1
|
endpoint_a_port: 1
|
||||||
endpoint_b_ref: domain_controller
|
endpoint_b_hostname: domain_controller
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- endpoint_a_ref: switch_1
|
- endpoint_a_hostname: switch_1
|
||||||
endpoint_a_port: 2
|
endpoint_a_port: 2
|
||||||
endpoint_b_ref: web_server
|
endpoint_b_hostname: web_server
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- endpoint_a_ref: switch_1
|
- endpoint_a_hostname: switch_1
|
||||||
endpoint_a_port: 3
|
endpoint_a_port: 3
|
||||||
endpoint_b_ref: database_server
|
endpoint_b_hostname: database_server
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- endpoint_a_ref: switch_1
|
- endpoint_a_hostname: switch_1
|
||||||
endpoint_a_port: 4
|
endpoint_a_port: 4
|
||||||
endpoint_b_ref: backup_server
|
endpoint_b_hostname: backup_server
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- endpoint_a_ref: switch_1
|
- endpoint_a_hostname: switch_1
|
||||||
endpoint_a_port: 7
|
endpoint_a_port: 7
|
||||||
endpoint_b_ref: security_suite
|
endpoint_b_hostname: security_suite
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- endpoint_a_ref: switch_2
|
- endpoint_a_hostname: switch_2
|
||||||
endpoint_a_port: 1
|
endpoint_a_port: 1
|
||||||
endpoint_b_ref: client_1
|
endpoint_b_hostname: client_1
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- endpoint_a_ref: switch_2
|
- endpoint_a_hostname: switch_2
|
||||||
endpoint_a_port: 2
|
endpoint_a_port: 2
|
||||||
endpoint_b_ref: client_2
|
endpoint_b_hostname: client_2
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- endpoint_a_ref: switch_2
|
- endpoint_a_hostname: switch_2
|
||||||
endpoint_a_port: 7
|
endpoint_a_port: 7
|
||||||
endpoint_b_ref: security_suite
|
endpoint_b_hostname: security_suite
|
||||||
endpoint_b_port: 2
|
endpoint_b_port: 2
|
||||||
|
|||||||
@@ -1505,43 +1505,43 @@ simulation:
|
|||||||
|
|
||||||
|
|
||||||
links:
|
links:
|
||||||
- endpoint_a_ref: router_1
|
- endpoint_a_hostname: router_1
|
||||||
endpoint_a_port: 1
|
endpoint_a_port: 1
|
||||||
endpoint_b_ref: switch_1
|
endpoint_b_hostname: switch_1
|
||||||
endpoint_b_port: 8
|
endpoint_b_port: 8
|
||||||
- endpoint_a_ref: router_1
|
- endpoint_a_hostname: router_1
|
||||||
endpoint_a_port: 2
|
endpoint_a_port: 2
|
||||||
endpoint_b_ref: switch_2
|
endpoint_b_hostname: switch_2
|
||||||
endpoint_b_port: 8
|
endpoint_b_port: 8
|
||||||
- endpoint_a_ref: switch_1
|
- endpoint_a_hostname: switch_1
|
||||||
endpoint_a_port: 1
|
endpoint_a_port: 1
|
||||||
endpoint_b_ref: domain_controller
|
endpoint_b_hostname: domain_controller
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- endpoint_a_ref: switch_1
|
- endpoint_a_hostname: switch_1
|
||||||
endpoint_a_port: 2
|
endpoint_a_port: 2
|
||||||
endpoint_b_ref: web_server
|
endpoint_b_hostname: web_server
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- endpoint_a_ref: switch_1
|
- endpoint_a_hostname: switch_1
|
||||||
endpoint_a_port: 3
|
endpoint_a_port: 3
|
||||||
endpoint_b_ref: database_server
|
endpoint_b_hostname: database_server
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- endpoint_a_ref: switch_1
|
- endpoint_a_hostname: switch_1
|
||||||
endpoint_a_port: 4
|
endpoint_a_port: 4
|
||||||
endpoint_b_ref: backup_server
|
endpoint_b_hostname: backup_server
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- endpoint_a_ref: switch_1
|
- endpoint_a_hostname: switch_1
|
||||||
endpoint_a_port: 7
|
endpoint_a_port: 7
|
||||||
endpoint_b_ref: security_suite
|
endpoint_b_hostname: security_suite
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- endpoint_a_ref: switch_2
|
- endpoint_a_hostname: switch_2
|
||||||
endpoint_a_port: 1
|
endpoint_a_port: 1
|
||||||
endpoint_b_ref: client_1
|
endpoint_b_hostname: client_1
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- endpoint_a_ref: switch_2
|
- endpoint_a_hostname: switch_2
|
||||||
endpoint_a_port: 2
|
endpoint_a_port: 2
|
||||||
endpoint_b_ref: client_2
|
endpoint_b_hostname: client_2
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- endpoint_a_ref: switch_2
|
- endpoint_a_hostname: switch_2
|
||||||
endpoint_a_port: 7
|
endpoint_a_port: 7
|
||||||
endpoint_b_ref: security_suite
|
endpoint_b_hostname: security_suite
|
||||||
endpoint_b_port: 2
|
endpoint_b_port: 2
|
||||||
|
|||||||
@@ -396,8 +396,8 @@ class PrimaiteGame:
|
|||||||
|
|
||||||
# 2. create links between nodes
|
# 2. create links between nodes
|
||||||
for link_cfg in links_cfg:
|
for link_cfg in links_cfg:
|
||||||
node_a = net.get_node_by_hostname(link_cfg["endpoint_a_ref"])
|
node_a = net.get_node_by_hostname(link_cfg["endpoint_a_hostname"])
|
||||||
node_b = net.get_node_by_hostname(link_cfg["endpoint_b_ref"])
|
node_b = net.get_node_by_hostname(link_cfg["endpoint_b_hostname"])
|
||||||
if isinstance(node_a, Switch):
|
if isinstance(node_a, Switch):
|
||||||
endpoint_a = node_a.network_interface[link_cfg["endpoint_a_port"]]
|
endpoint_a = node_a.network_interface[link_cfg["endpoint_a_port"]]
|
||||||
else:
|
else:
|
||||||
|
|||||||
@@ -687,43 +687,43 @@ simulation:
|
|||||||
type: DNSClient
|
type: DNSClient
|
||||||
|
|
||||||
links:
|
links:
|
||||||
- endpoint_a_ref: router_1
|
- endpoint_a_hostname: router_1
|
||||||
endpoint_a_port: 1
|
endpoint_a_port: 1
|
||||||
endpoint_b_ref: switch_1
|
endpoint_b_hostname: switch_1
|
||||||
endpoint_b_port: 8
|
endpoint_b_port: 8
|
||||||
- endpoint_a_ref: router_1
|
- endpoint_a_hostname: router_1
|
||||||
endpoint_a_port: 2
|
endpoint_a_port: 2
|
||||||
endpoint_b_ref: switch_2
|
endpoint_b_hostname: switch_2
|
||||||
endpoint_b_port: 8
|
endpoint_b_port: 8
|
||||||
- endpoint_a_ref: switch_1
|
- endpoint_a_hostname: switch_1
|
||||||
endpoint_a_port: 1
|
endpoint_a_port: 1
|
||||||
endpoint_b_ref: domain_controller
|
endpoint_b_hostname: domain_controller
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- endpoint_a_ref: switch_1
|
- endpoint_a_hostname: switch_1
|
||||||
endpoint_a_port: 2
|
endpoint_a_port: 2
|
||||||
endpoint_b_ref: web_server
|
endpoint_b_hostname: web_server
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- endpoint_a_ref: switch_1
|
- endpoint_a_hostname: switch_1
|
||||||
endpoint_a_port: 3
|
endpoint_a_port: 3
|
||||||
endpoint_b_ref: database_server
|
endpoint_b_hostname: database_server
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- endpoint_a_ref: switch_1
|
- endpoint_a_hostname: switch_1
|
||||||
endpoint_a_port: 4
|
endpoint_a_port: 4
|
||||||
endpoint_b_ref: backup_server
|
endpoint_b_hostname: backup_server
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- endpoint_a_ref: switch_1
|
- endpoint_a_hostname: switch_1
|
||||||
endpoint_a_port: 7
|
endpoint_a_port: 7
|
||||||
endpoint_b_ref: security_suite
|
endpoint_b_hostname: security_suite
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- endpoint_a_ref: switch_2
|
- endpoint_a_hostname: switch_2
|
||||||
endpoint_a_port: 1
|
endpoint_a_port: 1
|
||||||
endpoint_b_ref: client_1
|
endpoint_b_hostname: client_1
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- endpoint_a_ref: switch_2
|
- endpoint_a_hostname: switch_2
|
||||||
endpoint_a_port: 2
|
endpoint_a_port: 2
|
||||||
endpoint_b_ref: client_2
|
endpoint_b_hostname: client_2
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- endpoint_a_ref: switch_2
|
- endpoint_a_hostname: switch_2
|
||||||
endpoint_a_port: 7
|
endpoint_a_port: 7
|
||||||
endpoint_b_ref: security_suite
|
endpoint_b_hostname: security_suite
|
||||||
endpoint_b_port: 2
|
endpoint_b_port: 2
|
||||||
|
|||||||
@@ -161,22 +161,22 @@ simulation:
|
|||||||
|
|
||||||
links:
|
links:
|
||||||
- ref: switch_1___client_1
|
- ref: switch_1___client_1
|
||||||
endpoint_a_ref: switch_1
|
endpoint_a_hostname: switch_1
|
||||||
endpoint_a_port: 1
|
endpoint_a_port: 1
|
||||||
endpoint_b_ref: client_1
|
endpoint_b_hostname: client_1
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- ref: switch_2___client_2
|
- ref: switch_2___client_2
|
||||||
endpoint_a_ref: switch_2
|
endpoint_a_hostname: switch_2
|
||||||
endpoint_a_port: 1
|
endpoint_a_port: 1
|
||||||
endpoint_b_ref: client_2
|
endpoint_b_hostname: client_2
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- ref: switch_1___firewall
|
- ref: switch_1___firewall
|
||||||
endpoint_a_ref: switch_1
|
endpoint_a_hostname: switch_1
|
||||||
endpoint_a_port: 2
|
endpoint_a_port: 2
|
||||||
endpoint_b_ref: firewall
|
endpoint_b_hostname: firewall
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- ref: switch_2___firewall
|
- ref: switch_2___firewall
|
||||||
endpoint_a_ref: switch_2
|
endpoint_a_hostname: switch_2
|
||||||
endpoint_a_port: 2
|
endpoint_a_port: 2
|
||||||
endpoint_b_ref: firewall
|
endpoint_b_hostname: firewall
|
||||||
endpoint_b_port: 2
|
endpoint_b_port: 2
|
||||||
|
|||||||
@@ -162,11 +162,11 @@ simulation:
|
|||||||
# pre installed services and applications
|
# pre installed services and applications
|
||||||
|
|
||||||
links:
|
links:
|
||||||
- endpoint_a_ref: switch_1
|
- endpoint_a_hostname: switch_1
|
||||||
endpoint_a_port: 1
|
endpoint_a_port: 1
|
||||||
endpoint_b_ref: client_1
|
endpoint_b_hostname: client_1
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- endpoint_a_ref: switch_1
|
- endpoint_a_hostname: switch_1
|
||||||
endpoint_a_port: 2
|
endpoint_a_port: 2
|
||||||
endpoint_b_ref: client_2
|
endpoint_b_hostname: client_2
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
|
|||||||
@@ -267,42 +267,42 @@ simulation:
|
|||||||
type: DNSServer
|
type: DNSServer
|
||||||
links:
|
links:
|
||||||
- ref: client_1___switch_1
|
- ref: client_1___switch_1
|
||||||
endpoint_a_ref: client_1
|
endpoint_a_hostname: client_1
|
||||||
endpoint_a_port: 1
|
endpoint_a_port: 1
|
||||||
endpoint_b_ref: switch_1
|
endpoint_b_hostname: switch_1
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- ref: router_1___switch_1
|
- ref: router_1___switch_1
|
||||||
endpoint_a_ref: router_1
|
endpoint_a_hostname: router_1
|
||||||
endpoint_a_port: 1
|
endpoint_a_port: 1
|
||||||
endpoint_b_ref: switch_1
|
endpoint_b_hostname: switch_1
|
||||||
endpoint_b_port: 8
|
endpoint_b_port: 8
|
||||||
- ref: router_1___firewall
|
- ref: router_1___firewall
|
||||||
endpoint_a_ref: firewall
|
endpoint_a_hostname: firewall
|
||||||
endpoint_a_port: 2 # internal firewall port
|
endpoint_a_port: 2 # internal firewall port
|
||||||
endpoint_b_ref: router_1
|
endpoint_b_hostname: router_1
|
||||||
endpoint_b_port: 2
|
endpoint_b_port: 2
|
||||||
- ref: firewall___switch_2
|
- ref: firewall___switch_2
|
||||||
endpoint_a_ref: firewall
|
endpoint_a_hostname: firewall
|
||||||
endpoint_a_port: 3 # dmz firewall port
|
endpoint_a_port: 3 # dmz firewall port
|
||||||
endpoint_b_ref: switch_2
|
endpoint_b_hostname: switch_2
|
||||||
endpoint_b_port: 8
|
endpoint_b_port: 8
|
||||||
- ref: dmz_server___switch_2
|
- ref: dmz_server___switch_2
|
||||||
endpoint_a_ref: dmz_server
|
endpoint_a_hostname: dmz_server
|
||||||
endpoint_a_port: 1
|
endpoint_a_port: 1
|
||||||
endpoint_b_ref: switch_2
|
endpoint_b_hostname: switch_2
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- ref: firewall___switch_3
|
- ref: firewall___switch_3
|
||||||
endpoint_a_ref: firewall
|
endpoint_a_hostname: firewall
|
||||||
endpoint_a_port: 1 # external firewall port
|
endpoint_a_port: 1 # external firewall port
|
||||||
endpoint_b_ref: switch_3
|
endpoint_b_hostname: switch_3
|
||||||
endpoint_b_port: 8
|
endpoint_b_port: 8
|
||||||
- ref: external_computer___switch_3
|
- ref: external_computer___switch_3
|
||||||
endpoint_a_ref: external_computer
|
endpoint_a_hostname: external_computer
|
||||||
endpoint_a_port: 1
|
endpoint_a_port: 1
|
||||||
endpoint_b_ref: switch_3
|
endpoint_b_hostname: switch_3
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- ref: external_server___switch_3
|
- ref: external_server___switch_3
|
||||||
endpoint_a_ref: external_server
|
endpoint_a_hostname: external_server
|
||||||
endpoint_a_port: 1
|
endpoint_a_port: 1
|
||||||
endpoint_b_ref: switch_3
|
endpoint_b_hostname: switch_3
|
||||||
endpoint_b_port: 2
|
endpoint_b_port: 2
|
||||||
|
|||||||
@@ -703,43 +703,43 @@ simulation:
|
|||||||
type: DNSClient
|
type: DNSClient
|
||||||
|
|
||||||
links:
|
links:
|
||||||
- endpoint_a_ref: router_1
|
- endpoint_a_hostname: router_1
|
||||||
endpoint_a_port: 1
|
endpoint_a_port: 1
|
||||||
endpoint_b_ref: switch_1
|
endpoint_b_hostname: switch_1
|
||||||
endpoint_b_port: 8
|
endpoint_b_port: 8
|
||||||
- endpoint_a_ref: router_1
|
- endpoint_a_hostname: router_1
|
||||||
endpoint_a_port: 2
|
endpoint_a_port: 2
|
||||||
endpoint_b_ref: switch_2
|
endpoint_b_hostname: switch_2
|
||||||
endpoint_b_port: 8
|
endpoint_b_port: 8
|
||||||
- endpoint_a_ref: switch_1
|
- endpoint_a_hostname: switch_1
|
||||||
endpoint_a_port: 1
|
endpoint_a_port: 1
|
||||||
endpoint_b_ref: domain_controller
|
endpoint_b_hostname: domain_controller
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- endpoint_a_ref: switch_1
|
- endpoint_a_hostname: switch_1
|
||||||
endpoint_a_port: 2
|
endpoint_a_port: 2
|
||||||
endpoint_b_ref: web_server
|
endpoint_b_hostname: web_server
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- endpoint_a_ref: switch_1
|
- endpoint_a_hostname: switch_1
|
||||||
endpoint_a_port: 3
|
endpoint_a_port: 3
|
||||||
endpoint_b_ref: database_server
|
endpoint_b_hostname: database_server
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- endpoint_a_ref: switch_1
|
- endpoint_a_hostname: switch_1
|
||||||
endpoint_a_port: 4
|
endpoint_a_port: 4
|
||||||
endpoint_b_ref: backup_server
|
endpoint_b_hostname: backup_server
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- endpoint_a_ref: switch_1
|
- endpoint_a_hostname: switch_1
|
||||||
endpoint_a_port: 7
|
endpoint_a_port: 7
|
||||||
endpoint_b_ref: security_suite
|
endpoint_b_hostname: security_suite
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- endpoint_a_ref: switch_2
|
- endpoint_a_hostname: switch_2
|
||||||
endpoint_a_port: 1
|
endpoint_a_port: 1
|
||||||
endpoint_b_ref: client_1
|
endpoint_b_hostname: client_1
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- endpoint_a_ref: switch_2
|
- endpoint_a_hostname: switch_2
|
||||||
endpoint_a_port: 2
|
endpoint_a_port: 2
|
||||||
endpoint_b_ref: client_2
|
endpoint_b_hostname: client_2
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- endpoint_a_ref: switch_2
|
- endpoint_a_hostname: switch_2
|
||||||
endpoint_a_port: 7
|
endpoint_a_port: 7
|
||||||
endpoint_b_ref: security_suite
|
endpoint_b_hostname: security_suite
|
||||||
endpoint_b_port: 2
|
endpoint_b_port: 2
|
||||||
|
|||||||
@@ -461,42 +461,42 @@ simulation:
|
|||||||
type: DNSServer
|
type: DNSServer
|
||||||
links:
|
links:
|
||||||
- ref: client_1___switch_1
|
- ref: client_1___switch_1
|
||||||
endpoint_a_ref: client_1
|
endpoint_a_hostname: client_1
|
||||||
endpoint_a_port: 1
|
endpoint_a_port: 1
|
||||||
endpoint_b_ref: switch_1
|
endpoint_b_hostname: switch_1
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- ref: router_1___switch_1
|
- ref: router_1___switch_1
|
||||||
endpoint_a_ref: router_1
|
endpoint_a_hostname: router_1
|
||||||
endpoint_a_port: 1
|
endpoint_a_port: 1
|
||||||
endpoint_b_ref: switch_1
|
endpoint_b_hostname: switch_1
|
||||||
endpoint_b_port: 8
|
endpoint_b_port: 8
|
||||||
- ref: router_1___firewall
|
- ref: router_1___firewall
|
||||||
endpoint_a_ref: firewall
|
endpoint_a_hostname: firewall
|
||||||
endpoint_a_port: 2 # internal firewall port
|
endpoint_a_port: 2 # internal firewall port
|
||||||
endpoint_b_ref: router_1
|
endpoint_b_hostname: router_1
|
||||||
endpoint_b_port: 2
|
endpoint_b_port: 2
|
||||||
- ref: firewall___switch_2
|
- ref: firewall___switch_2
|
||||||
endpoint_a_ref: firewall
|
endpoint_a_hostname: firewall
|
||||||
endpoint_a_port: 3 # dmz firewall port
|
endpoint_a_port: 3 # dmz firewall port
|
||||||
endpoint_b_ref: switch_2
|
endpoint_b_hostname: switch_2
|
||||||
endpoint_b_port: 8
|
endpoint_b_port: 8
|
||||||
- ref: dmz_server___switch_2
|
- ref: dmz_server___switch_2
|
||||||
endpoint_a_ref: dmz_server
|
endpoint_a_hostname: dmz_server
|
||||||
endpoint_a_port: 1
|
endpoint_a_port: 1
|
||||||
endpoint_b_ref: switch_2
|
endpoint_b_hostname: switch_2
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- ref: firewall___switch_3
|
- ref: firewall___switch_3
|
||||||
endpoint_a_ref: firewall
|
endpoint_a_hostname: firewall
|
||||||
endpoint_a_port: 1 # external firewall port
|
endpoint_a_port: 1 # external firewall port
|
||||||
endpoint_b_ref: switch_3
|
endpoint_b_hostname: switch_3
|
||||||
endpoint_b_port: 8
|
endpoint_b_port: 8
|
||||||
- ref: external_computer___switch_3
|
- ref: external_computer___switch_3
|
||||||
endpoint_a_ref: external_computer
|
endpoint_a_hostname: external_computer
|
||||||
endpoint_a_port: 1
|
endpoint_a_port: 1
|
||||||
endpoint_b_ref: switch_3
|
endpoint_b_hostname: switch_3
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- ref: external_server___switch_3
|
- ref: external_server___switch_3
|
||||||
endpoint_a_ref: external_server
|
endpoint_a_hostname: external_server
|
||||||
endpoint_a_port: 1
|
endpoint_a_port: 1
|
||||||
endpoint_b_ref: switch_3
|
endpoint_b_hostname: switch_3
|
||||||
endpoint_b_port: 2
|
endpoint_b_port: 2
|
||||||
|
|||||||
@@ -1162,43 +1162,43 @@ simulation:
|
|||||||
type: DNSClient
|
type: DNSClient
|
||||||
|
|
||||||
links:
|
links:
|
||||||
- endpoint_a_ref: router_1
|
- endpoint_a_hostname: router_1
|
||||||
endpoint_a_port: 1
|
endpoint_a_port: 1
|
||||||
endpoint_b_ref: switch_1
|
endpoint_b_hostname: switch_1
|
||||||
endpoint_b_port: 8
|
endpoint_b_port: 8
|
||||||
- endpoint_a_ref: router_1
|
- endpoint_a_hostname: router_1
|
||||||
endpoint_a_port: 2
|
endpoint_a_port: 2
|
||||||
endpoint_b_ref: switch_2
|
endpoint_b_hostname: switch_2
|
||||||
endpoint_b_port: 8
|
endpoint_b_port: 8
|
||||||
- endpoint_a_ref: switch_1
|
- endpoint_a_hostname: switch_1
|
||||||
endpoint_a_port: 1
|
endpoint_a_port: 1
|
||||||
endpoint_b_ref: domain_controller
|
endpoint_b_hostname: domain_controller
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- endpoint_a_ref: switch_1
|
- endpoint_a_hostname: switch_1
|
||||||
endpoint_a_port: 2
|
endpoint_a_port: 2
|
||||||
endpoint_b_ref: web_server
|
endpoint_b_hostname: web_server
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- endpoint_a_ref: switch_1
|
- endpoint_a_hostname: switch_1
|
||||||
endpoint_a_port: 3
|
endpoint_a_port: 3
|
||||||
endpoint_b_ref: database_server
|
endpoint_b_hostname: database_server
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- endpoint_a_ref: switch_1
|
- endpoint_a_hostname: switch_1
|
||||||
endpoint_a_port: 4
|
endpoint_a_port: 4
|
||||||
endpoint_b_ref: backup_server
|
endpoint_b_hostname: backup_server
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- endpoint_a_ref: switch_1
|
- endpoint_a_hostname: switch_1
|
||||||
endpoint_a_port: 7
|
endpoint_a_port: 7
|
||||||
endpoint_b_ref: security_suite
|
endpoint_b_hostname: security_suite
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- endpoint_a_ref: switch_2
|
- endpoint_a_hostname: switch_2
|
||||||
endpoint_a_port: 1
|
endpoint_a_port: 1
|
||||||
endpoint_b_ref: client_1
|
endpoint_b_hostname: client_1
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- endpoint_a_ref: switch_2
|
- endpoint_a_hostname: switch_2
|
||||||
endpoint_a_port: 2
|
endpoint_a_port: 2
|
||||||
endpoint_b_ref: client_2
|
endpoint_b_hostname: client_2
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- endpoint_a_ref: switch_2
|
- endpoint_a_hostname: switch_2
|
||||||
endpoint_a_port: 7
|
endpoint_a_port: 7
|
||||||
endpoint_b_ref: security_suite
|
endpoint_b_hostname: security_suite
|
||||||
endpoint_b_port: 2
|
endpoint_b_port: 2
|
||||||
|
|||||||
@@ -921,43 +921,43 @@ simulation:
|
|||||||
|
|
||||||
|
|
||||||
links:
|
links:
|
||||||
- endpoint_a_ref: router_1
|
- endpoint_a_hostname: router_1
|
||||||
endpoint_a_port: 1
|
endpoint_a_port: 1
|
||||||
endpoint_b_ref: switch_1
|
endpoint_b_hostname: switch_1
|
||||||
endpoint_b_port: 8
|
endpoint_b_port: 8
|
||||||
- endpoint_a_ref: router_1
|
- endpoint_a_hostname: router_1
|
||||||
endpoint_a_port: 2
|
endpoint_a_port: 2
|
||||||
endpoint_b_ref: switch_2
|
endpoint_b_hostname: switch_2
|
||||||
endpoint_b_port: 8
|
endpoint_b_port: 8
|
||||||
- endpoint_a_ref: switch_1
|
- endpoint_a_hostname: switch_1
|
||||||
endpoint_a_port: 1
|
endpoint_a_port: 1
|
||||||
endpoint_b_ref: domain_controller
|
endpoint_b_hostname: domain_controller
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- endpoint_a_ref: switch_1
|
- endpoint_a_hostname: switch_1
|
||||||
endpoint_a_port: 2
|
endpoint_a_port: 2
|
||||||
endpoint_b_ref: web_server
|
endpoint_b_hostname: web_server
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- endpoint_a_ref: switch_1
|
- endpoint_a_hostname: switch_1
|
||||||
endpoint_a_port: 3
|
endpoint_a_port: 3
|
||||||
endpoint_b_ref: database_server
|
endpoint_b_hostname: database_server
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- endpoint_a_ref: switch_1
|
- endpoint_a_hostname: switch_1
|
||||||
endpoint_a_port: 4
|
endpoint_a_port: 4
|
||||||
endpoint_b_ref: backup_server
|
endpoint_b_hostname: backup_server
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- endpoint_a_ref: switch_1
|
- endpoint_a_hostname: switch_1
|
||||||
endpoint_a_port: 7
|
endpoint_a_port: 7
|
||||||
endpoint_b_ref: security_suite
|
endpoint_b_hostname: security_suite
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- endpoint_a_ref: switch_2
|
- endpoint_a_hostname: switch_2
|
||||||
endpoint_a_port: 1
|
endpoint_a_port: 1
|
||||||
endpoint_b_ref: client_1
|
endpoint_b_hostname: client_1
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- endpoint_a_ref: switch_2
|
- endpoint_a_hostname: switch_2
|
||||||
endpoint_a_port: 2
|
endpoint_a_port: 2
|
||||||
endpoint_b_ref: client_2
|
endpoint_b_hostname: client_2
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- endpoint_a_ref: switch_2
|
- endpoint_a_hostname: switch_2
|
||||||
endpoint_a_port: 7
|
endpoint_a_port: 7
|
||||||
endpoint_b_ref: security_suite
|
endpoint_b_hostname: security_suite
|
||||||
endpoint_b_port: 2
|
endpoint_b_port: 2
|
||||||
|
|||||||
@@ -953,43 +953,43 @@ simulation:
|
|||||||
|
|
||||||
|
|
||||||
links:
|
links:
|
||||||
- endpoint_a_ref: router_1
|
- endpoint_a_hostname: router_1
|
||||||
endpoint_a_port: 1
|
endpoint_a_port: 1
|
||||||
endpoint_b_ref: switch_1
|
endpoint_b_hostname: switch_1
|
||||||
endpoint_b_port: 8
|
endpoint_b_port: 8
|
||||||
- endpoint_a_ref: router_1
|
- endpoint_a_hostname: router_1
|
||||||
endpoint_a_port: 2
|
endpoint_a_port: 2
|
||||||
endpoint_b_ref: switch_2
|
endpoint_b_hostname: switch_2
|
||||||
endpoint_b_port: 8
|
endpoint_b_port: 8
|
||||||
- endpoint_a_ref: switch_1
|
- endpoint_a_hostname: switch_1
|
||||||
endpoint_a_port: 1
|
endpoint_a_port: 1
|
||||||
endpoint_b_ref: domain_controller
|
endpoint_b_hostname: domain_controller
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- endpoint_a_ref: switch_1
|
- endpoint_a_hostname: switch_1
|
||||||
endpoint_a_port: 2
|
endpoint_a_port: 2
|
||||||
endpoint_b_ref: web_server
|
endpoint_b_hostname: web_server
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- endpoint_a_ref: switch_1
|
- endpoint_a_hostname: switch_1
|
||||||
endpoint_a_port: 3
|
endpoint_a_port: 3
|
||||||
endpoint_b_ref: database_server
|
endpoint_b_hostname: database_server
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- endpoint_a_ref: switch_1
|
- endpoint_a_hostname: switch_1
|
||||||
endpoint_a_port: 4
|
endpoint_a_port: 4
|
||||||
endpoint_b_ref: backup_server
|
endpoint_b_hostname: backup_server
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- endpoint_a_ref: switch_1
|
- endpoint_a_hostname: switch_1
|
||||||
endpoint_a_port: 7
|
endpoint_a_port: 7
|
||||||
endpoint_b_ref: security_suite
|
endpoint_b_hostname: security_suite
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- endpoint_a_ref: switch_2
|
- endpoint_a_hostname: switch_2
|
||||||
endpoint_a_port: 1
|
endpoint_a_port: 1
|
||||||
endpoint_b_ref: client_1
|
endpoint_b_hostname: client_1
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- endpoint_a_ref: switch_2
|
- endpoint_a_hostname: switch_2
|
||||||
endpoint_a_port: 2
|
endpoint_a_port: 2
|
||||||
endpoint_b_ref: client_2
|
endpoint_b_hostname: client_2
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- endpoint_a_ref: switch_2
|
- endpoint_a_hostname: switch_2
|
||||||
endpoint_a_port: 7
|
endpoint_a_port: 7
|
||||||
endpoint_b_ref: security_suite
|
endpoint_b_hostname: security_suite
|
||||||
endpoint_b_port: 2
|
endpoint_b_port: 2
|
||||||
|
|||||||
@@ -743,43 +743,43 @@ simulation:
|
|||||||
protocol: ICMP
|
protocol: ICMP
|
||||||
|
|
||||||
links:
|
links:
|
||||||
- endpoint_a_ref: router_1
|
- endpoint_a_hostname: router_1
|
||||||
endpoint_a_port: 1
|
endpoint_a_port: 1
|
||||||
endpoint_b_ref: switch_1
|
endpoint_b_hostname: switch_1
|
||||||
endpoint_b_port: 8
|
endpoint_b_port: 8
|
||||||
- endpoint_a_ref: router_1
|
- endpoint_a_hostname: router_1
|
||||||
endpoint_a_port: 2
|
endpoint_a_port: 2
|
||||||
endpoint_b_ref: switch_2
|
endpoint_b_hostname: switch_2
|
||||||
endpoint_b_port: 8
|
endpoint_b_port: 8
|
||||||
- endpoint_a_ref: switch_1
|
- endpoint_a_hostname: switch_1
|
||||||
endpoint_a_port: 1
|
endpoint_a_port: 1
|
||||||
endpoint_b_ref: domain_controller
|
endpoint_b_hostname: domain_controller
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- endpoint_a_ref: switch_1
|
- endpoint_a_hostname: switch_1
|
||||||
endpoint_a_port: 2
|
endpoint_a_port: 2
|
||||||
endpoint_b_ref: web_server
|
endpoint_b_hostname: web_server
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- endpoint_a_ref: switch_1
|
- endpoint_a_hostname: switch_1
|
||||||
endpoint_a_port: 3
|
endpoint_a_port: 3
|
||||||
endpoint_b_ref: database_server
|
endpoint_b_hostname: database_server
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- endpoint_a_ref: switch_1
|
- endpoint_a_hostname: switch_1
|
||||||
endpoint_a_port: 4
|
endpoint_a_port: 4
|
||||||
endpoint_b_ref: backup_server
|
endpoint_b_hostname: backup_server
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- endpoint_a_ref: switch_1
|
- endpoint_a_hostname: switch_1
|
||||||
endpoint_a_port: 7
|
endpoint_a_port: 7
|
||||||
endpoint_b_ref: security_suite
|
endpoint_b_hostname: security_suite
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- endpoint_a_ref: switch_2
|
- endpoint_a_hostname: switch_2
|
||||||
endpoint_a_port: 1
|
endpoint_a_port: 1
|
||||||
endpoint_b_ref: client_1
|
endpoint_b_hostname: client_1
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- endpoint_a_ref: switch_2
|
- endpoint_a_hostname: switch_2
|
||||||
endpoint_a_port: 2
|
endpoint_a_port: 2
|
||||||
endpoint_b_ref: client_2
|
endpoint_b_hostname: client_2
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- endpoint_a_ref: switch_2
|
- endpoint_a_hostname: switch_2
|
||||||
endpoint_a_port: 7
|
endpoint_a_port: 7
|
||||||
endpoint_b_ref: security_suite
|
endpoint_b_hostname: security_suite
|
||||||
endpoint_b_port: 2
|
endpoint_b_port: 2
|
||||||
|
|||||||
@@ -710,43 +710,43 @@ simulation:
|
|||||||
type: DNSClient
|
type: DNSClient
|
||||||
|
|
||||||
links:
|
links:
|
||||||
- endpoint_a_ref: router_1
|
- endpoint_a_hostname: router_1
|
||||||
endpoint_a_port: 1
|
endpoint_a_port: 1
|
||||||
endpoint_b_ref: switch_1
|
endpoint_b_hostname: switch_1
|
||||||
endpoint_b_port: 8
|
endpoint_b_port: 8
|
||||||
- endpoint_a_ref: router_1
|
- endpoint_a_hostname: router_1
|
||||||
endpoint_a_port: 2
|
endpoint_a_port: 2
|
||||||
endpoint_b_ref: switch_2
|
endpoint_b_hostname: switch_2
|
||||||
endpoint_b_port: 8
|
endpoint_b_port: 8
|
||||||
- endpoint_a_ref: switch_1
|
- endpoint_a_hostname: switch_1
|
||||||
endpoint_a_port: 1
|
endpoint_a_port: 1
|
||||||
endpoint_b_ref: domain_controller
|
endpoint_b_hostname: domain_controller
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- endpoint_a_ref: switch_1
|
- endpoint_a_hostname: switch_1
|
||||||
endpoint_a_port: 2
|
endpoint_a_port: 2
|
||||||
endpoint_b_ref: web_server
|
endpoint_b_hostname: web_server
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- endpoint_a_ref: switch_1
|
- endpoint_a_hostname: switch_1
|
||||||
endpoint_a_port: 3
|
endpoint_a_port: 3
|
||||||
endpoint_b_ref: database_server
|
endpoint_b_hostname: database_server
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- endpoint_a_ref: switch_1
|
- endpoint_a_hostname: switch_1
|
||||||
endpoint_a_port: 4
|
endpoint_a_port: 4
|
||||||
endpoint_b_ref: backup_server
|
endpoint_b_hostname: backup_server
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- endpoint_a_ref: switch_1
|
- endpoint_a_hostname: switch_1
|
||||||
endpoint_a_port: 7
|
endpoint_a_port: 7
|
||||||
endpoint_b_ref: security_suite
|
endpoint_b_hostname: security_suite
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- endpoint_a_ref: switch_2
|
- endpoint_a_hostname: switch_2
|
||||||
endpoint_a_port: 1
|
endpoint_a_port: 1
|
||||||
endpoint_b_ref: client_1
|
endpoint_b_hostname: client_1
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- endpoint_a_ref: switch_2
|
- endpoint_a_hostname: switch_2
|
||||||
endpoint_a_port: 2
|
endpoint_a_port: 2
|
||||||
endpoint_b_ref: client_2
|
endpoint_b_hostname: client_2
|
||||||
endpoint_b_port: 1
|
endpoint_b_port: 1
|
||||||
- endpoint_a_ref: switch_2
|
- endpoint_a_hostname: switch_2
|
||||||
endpoint_a_port: 7
|
endpoint_a_port: 7
|
||||||
endpoint_b_ref: security_suite
|
endpoint_b_hostname: security_suite
|
||||||
endpoint_b_port: 2
|
endpoint_b_port: 2
|
||||||
|
|||||||
Reference in New Issue
Block a user