Begin adding session tables, debug infos
This commit is contained in:
parent
879abe94c2
commit
02fc065c1d
4 changed files with 176 additions and 11 deletions
|
|
@ -38,7 +38,11 @@ table_id_fields = {
|
|||
5: 'TABLE_V4_NETWORKS',
|
||||
6: 'TABLE_ARP',
|
||||
7: 'TABLE_ARP_EGRESS',
|
||||
8: 'TABLE_ICMP'
|
||||
8: 'TABLE_ICMP',
|
||||
9: 'TABLE_NAT64_TCP',
|
||||
10: 'TABLE_NAT64_UDP',
|
||||
11: 'TABLE_NAT64_ICMP6',
|
||||
12: 'TABLE_NAT64_SESSION'
|
||||
}
|
||||
|
||||
table_proto = {
|
||||
|
|
@ -85,7 +89,7 @@ class L2Controller(object):
|
|||
|
||||
self.info['v6_mask'] = 64
|
||||
self.info['v6_nat64_mask'] = 96
|
||||
self.info['v6_base'] = ipaddress.ip_network("2001:db8::/32")
|
||||
self.info['v6_base'] = ipaddress.ip_network("2001:db8::/40")
|
||||
|
||||
self.info['v6_base_hostnet'] = ipaddress.ip_network("2001:db8::/48")
|
||||
self.info['v6_gen'] = self.info['v6_base_hostnet'].subnets(new_prefix=self.info['v6_mask'])
|
||||
|
|
@ -106,6 +110,9 @@ class L2Controller(object):
|
|||
self.info['switch_suffix'] = 0x42
|
||||
self.info['nat64_prefix'] = ipaddress.ip_network("64:ff9b::/96")
|
||||
|
||||
# /96 after the /40 pool we use above
|
||||
self.info['nat64_prefix_dynamic'] = ipaddress.ip_network("2001:db8:100::/96")
|
||||
|
||||
self.v6_routes = {}
|
||||
self.v6_routes[None] = []
|
||||
self.v6_routes['base'] = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue