Begin to add egress / arp support
This commit is contained in:
parent
08c7f4891c
commit
018e9eef09
3 changed files with 21 additions and 2 deletions
|
|
@ -36,7 +36,8 @@ table_id_fields = {
|
|||
3: 'TABLE_V6_NETWORKS',
|
||||
4: 'TABLE_NAT46',
|
||||
5: 'TABLE_V4_NETWORKS',
|
||||
6: 'TABLE_ARP'
|
||||
6: 'TABLE_ARP',
|
||||
7: 'TABLE_ARP_EGRESS'
|
||||
}
|
||||
|
||||
table_proto = {
|
||||
|
|
@ -254,6 +255,7 @@ class L2Controller(object):
|
|||
self.controller.table_add("v4_networks", "set_egress_port", [str(v4route['net'])], [str(v4route['port'])])
|
||||
|
||||
# ARP support
|
||||
self.controller.table_add("v4_arp_egress", "set_egress_port", [str(v4route['net'])], [str(v4route['port'])])
|
||||
router = "{}/32".format(self.ipv4_router(v4route['net']))
|
||||
self.controller.table_add("v4_arp", "arp_reply",
|
||||
[str(self.info['mac_broadcast']),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue