Commit 88ab8878 authored by Josh Kunz's avatar Josh Kunz

purge node_grant from the tree

parent f77b5987
Pipeline #1851 passed with stage
in 21 seconds
......@@ -20,6 +20,6 @@ def recv_nodes(p, rp_iter):
node_rp = p.create(capnet.RP)
grant = node.reset(node_rp)
info = node.info()
flow = node_grant.flow()
flow = grant.flow()
nodes[info.name] = NodeProperties(node, grant, info, node_rp, flow)
return nodes
......@@ -55,7 +55,7 @@ for (a, b) in PAIRS:
f_cap = b.flow.mint()
granted.append(f_cap)
if args.direct:
a.node_grant.grant(f_cap)
a.grant.grant(f_cap)
else:
a.rp.send(f_cap)
......@@ -64,7 +64,7 @@ for (a, b) in PAIRS:
f_cap = a.flow.mint()
granted.append(f_cap)
if args.direct:
b.node_grant.grant(f_cap)
b.grant.grant(f_cap)
else:
b.rp.send(f_cap)
pass
......
......@@ -34,6 +34,6 @@ nodes = capnet.util.recv_nodes(p, trans_rp.recv_iter())
for (a, b) in itertools.combinations(nodes.itervalues(), 2):
if a.info.name != myname:
a.node_grant.grant(b.flow)
a.grant.grant(b.flow)
if b.info.name != myname:
b.node_grant.grant(a.flow)
b.grant.grant(a.flow)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment