From e492dcb1c8ea6e8d29d05ec961a03b20c2218e68 Mon Sep 17 00:00:00 2001 From: Brenden Blanco Date: Wed, 17 Jun 2015 17:30:13 -0700 Subject: [PATCH] Remove update() call from vlan example * Breakage from previous commit Signed-off-by: Brenden Blanco --- examples/vlan_learning.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/vlan_learning.py b/examples/vlan_learning.py index 634643e..8c5efe8 100644 --- a/examples/vlan_learning.py +++ b/examples/vlan_learning.py @@ -122,7 +122,7 @@ for i in range(0, num_clients): # assign this client to the given worker idx = ipdb.interfaces["wrk%dp1" % worker_choice]["index"] mac = int(macaddr.replace(":", ""), 16) - ingress.update(ingress.Key(mac), ingress.Leaf(idx, 0, 0)) + ingress[ingress.Key(mac)] = ingress.Leaf(idx, 0, 0) cmd = ["bash", "-c", "for i in {1..8}; do curl 172.16.1.5 -o /dev/null; sleep 1; done"] client_processes.append(NSPopen(client.nl.netns, cmd)) -- 2.7.4