L2 over MPLS
[support for VPWS/VPLS] - switch to using dpo_proto_t rather than fib_protocol_t in fib_paths so that we can describe L2 paths - VLIB nodes to handle pop/push of MPLS labels to L2 Change-Id: Id050d06a11fd2c9c1c81ce5a0654e6c5ae6afa6e Signed-off-by: Neale Ranns <nranns@cisco.com>
This commit is contained in:

committed by
Florin Coras

parent
b60f4965bf
commit
da78f957e4
@ -11,7 +11,7 @@ from scapy.layers.inet6 import IPv6
|
||||
|
||||
from framework import VppTestCase, VppTestRunner, running_extended_tests
|
||||
from vpp_sub_interface import VppP2PSubint
|
||||
from vpp_ip_route import VppIpRoute, VppRoutePath
|
||||
from vpp_ip_route import VppIpRoute, VppRoutePath, DpoProto
|
||||
from util import mactobinary
|
||||
|
||||
|
||||
@ -219,7 +219,7 @@ class P2PEthernetIPV6(VppTestCase):
|
||||
route_8000 = VppIpRoute(self, "8000::", 64,
|
||||
[VppRoutePath(self.pg0.remote_ip6,
|
||||
self.pg0.sw_if_index,
|
||||
is_ip6=1)],
|
||||
proto=DpoProto.DPO_PROTO_IP6)],
|
||||
is_ip6=1)
|
||||
route_8000.add_vpp_config()
|
||||
|
||||
@ -239,7 +239,7 @@ class P2PEthernetIPV6(VppTestCase):
|
||||
route_9001 = VppIpRoute(self, "9001::", 64,
|
||||
[VppRoutePath(self.pg1.remote_ip6,
|
||||
self.pg1.sw_if_index,
|
||||
is_ip6=1)],
|
||||
proto=DpoProto.DPO_PROTO_IP6)],
|
||||
is_ip6=1)
|
||||
route_9001.add_vpp_config()
|
||||
|
||||
@ -264,7 +264,7 @@ class P2PEthernetIPV6(VppTestCase):
|
||||
route_3 = VppIpRoute(self, "9000::", 64,
|
||||
[VppRoutePath(self.pg1._remote_hosts[0].ip6,
|
||||
self.pg1.sw_if_index,
|
||||
is_ip6=1)],
|
||||
proto=DpoProto.DPO_PROTO_IP6)],
|
||||
is_ip6=1)
|
||||
route_3.add_vpp_config()
|
||||
|
||||
@ -289,7 +289,7 @@ class P2PEthernetIPV6(VppTestCase):
|
||||
route_9001 = VppIpRoute(self, "9000::", 64,
|
||||
[VppRoutePath(self.pg1._remote_hosts[0].ip6,
|
||||
self.pg1.sw_if_index,
|
||||
is_ip6=1)],
|
||||
proto=DpoProto.DPO_PROTO_IP6)],
|
||||
is_ip6=1)
|
||||
route_9001.add_vpp_config()
|
||||
|
||||
@ -310,19 +310,19 @@ class P2PEthernetIPV6(VppTestCase):
|
||||
route_8000 = VppIpRoute(self, "8000::", 64,
|
||||
[VppRoutePath(self.pg0.remote_ip6,
|
||||
self.pg0.sw_if_index,
|
||||
is_ip6=1)],
|
||||
proto=DpoProto.DPO_PROTO_IP6)],
|
||||
is_ip6=1)
|
||||
route_8000.add_vpp_config()
|
||||
route_8001 = VppIpRoute(self, "8001::", 64,
|
||||
[VppRoutePath(self.p2p_sub_ifs[0].remote_ip6,
|
||||
self.p2p_sub_ifs[0].sw_if_index,
|
||||
is_ip6=1)],
|
||||
proto=DpoProto.DPO_PROTO_IP6)],
|
||||
is_ip6=1)
|
||||
route_8001.add_vpp_config()
|
||||
route_8002 = VppIpRoute(self, "8002::", 64,
|
||||
[VppRoutePath(self.p2p_sub_ifs[1].remote_ip6,
|
||||
self.p2p_sub_ifs[1].sw_if_index,
|
||||
is_ip6=1)],
|
||||
proto=DpoProto.DPO_PROTO_IP6)],
|
||||
is_ip6=1)
|
||||
route_8002.add_vpp_config()
|
||||
|
||||
|
Reference in New Issue
Block a user