adjust table/action
This commit is contained in:
parent
7f1e9f6252
commit
4c331dc296
2 changed files with 3 additions and 2 deletions
|
@ -138,7 +138,7 @@ class L2Controller(object):
|
|||
if self.cpu_port:
|
||||
self.controller.mirroring_add(100, self.cpu_port)
|
||||
|
||||
self.init_ndp()
|
||||
# self.init_ndp()
|
||||
|
||||
def config(self):
|
||||
self.fill_tables()
|
||||
|
@ -158,7 +158,7 @@ class L2Controller(object):
|
|||
|
||||
self.controller.table_clear("v6_addresses")
|
||||
for v6addr in self.v6_addresses[self.mode]:
|
||||
self.controller.table_add("v6_addresses", "send_to_controller", [v6addr['addr']])
|
||||
self.controller.table_add("v6_addresses", "controller_reply", [v6addr['addr']])
|
||||
|
||||
|
||||
def gen_ndp_multicast_addr(self, addr):
|
||||
|
|
|
@ -138,6 +138,7 @@ control MyIngress(inout headers hdr,
|
|||
actions = {
|
||||
// icmp6_answer;
|
||||
send_to_controller;
|
||||
controller_reply;
|
||||
NoAction;
|
||||
}
|
||||
size = ADDRESS_TABLE_SIZE;
|
||||
|
|
Loading…
Reference in a new issue