initial sweeping changes to call all usages of various interface related variables and functions (netif, interface, if, ifc, etc) to use a consistent name iface
This commit is contained in:
parent
0462c1b084
commit
0725199d6d
93 changed files with 1955 additions and 2156 deletions
|
@ -20,13 +20,13 @@ if __name__ == "__main__":
|
|||
# node one
|
||||
options.config_services = ["DefaultRoute", "IPForward"]
|
||||
node1 = session.add_node(CoreNode, options=options)
|
||||
interface = prefixes.create_interface(node1)
|
||||
session.add_link(node1.id, switch.id, interface1_data=interface)
|
||||
interface = prefixes.create_iface(node1)
|
||||
session.add_link(node1.id, switch.id, iface1_data=interface)
|
||||
|
||||
# node two
|
||||
node2 = session.add_node(CoreNode, options=options)
|
||||
interface = prefixes.create_interface(node2)
|
||||
session.add_link(node2.id, switch.id, interface1_data=interface)
|
||||
interface = prefixes.create_iface(node2)
|
||||
session.add_link(node2.id, switch.id, iface1_data=interface)
|
||||
|
||||
# start session and run services
|
||||
session.instantiate()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue