daemon: revamp to align gre tunnels for distributed to align with changes, also moved gre tunnels for wired links to occur directly when linking, allowing runtime distributed functionality, also updates to phyical node to leverage a core node, but avoid using namespacing
This commit is contained in:
parent
8c24e9cfa6
commit
b71272519d
5 changed files with 113 additions and 201 deletions
|
@ -29,12 +29,14 @@ class TestDistributed:
|
|||
|
||||
# when
|
||||
session.distributed.add_server(server_name, host)
|
||||
node1 = session.add_node(HubNode)
|
||||
options = NodeOptions(server=server_name)
|
||||
node = session.add_node(HubNode, options=options)
|
||||
node2 = session.add_node(HubNode, options=options)
|
||||
session.add_link(node1.id, node2.id)
|
||||
session.instantiate()
|
||||
|
||||
# then
|
||||
assert node.server is not None
|
||||
assert node.server.name == server_name
|
||||
assert node.server.host == host
|
||||
assert len(session.distributed.tunnels) > 0
|
||||
assert node2.server is not None
|
||||
assert node2.server.name == server_name
|
||||
assert node2.server.host == host
|
||||
assert len(session.distributed.tunnels) == 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue