aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/mpls/mpls.c
AgeCommit message (Expand)AuthorFilesLines
2018-08-29Consolidate table->index conversion in fib-path CLI processingNeale Ranns1-19/+0
2018-04-18typo fix: UNKOWN -> UNKNOWNAndrey "Zed" Zaikin1-1/+1
2018-03-09MPLS Unifom modeNeale Ranns1-0/+3
2017-12-20Fix MPLS local-label CLI help stringMarek Gradzki1-1/+1
2017-11-22Fix MPLS local-label CLINeale Ranns1-2/+2
2017-11-18unformat function for FIB pathsNeale Ranns1-154/+7
2017-09-19Fix MPLS table create CLINeale Ranns1-7/+2
2017-09-13Add a name to the creation of an IP and MPLS tableNeale Ranns1-1/+4
2017-09-11FIB table add/delete APINeale Ranns1-4/+72
2017-08-09Allow multiple MPLS output labels to be passed on the CLINeale Ranns1-8/+25
2017-08-08L2 over MPLSNeale Ranns1-13/+23
2017-06-10MPLS: cannot delete a path from the CLINeale Ranns1-13/+25
2017-04-11Remove usued, redundant and deprecated code from lookup.hNeale Ranns1-2/+2
2017-04-07MPLS McastNeale Ranns1-8/+9
2017-03-17MPLS performance improvments.Neale Ranns1-0/+8
2017-02-22VPP-635: CLI Memory leak with invalid parameterBilly McFall1-0/+2
2016-12-28Reorganize source tree to use single autotools instanceDamjan Marion1-0/+511
rc = VppIpAddress(src) vdst = VppIpAddress(dst) ts = test.vapi.vxlan_gbp_tunnel_dump(INDEX_INVALID) for t in ts: if vsrc == t.tunnel.src and \ vdst == t.tunnel.dst and \ t.tunnel.vni == vni: return t.tunnel.sw_if_index return INDEX_INVALID class VppVxlanGbpTunnel(VppInterface): """ VPP VXLAN GBP interface """ def __init__(self, test, src, dst, vni, mcast_itf=None): """ Create VXLAN-GBP Tunnel interface """ super(VppVxlanGbpTunnel, self).__init__(test) self.src = VppIpAddress(src) self.dst = VppIpAddress(dst) self.vni = vni self.mcast_itf = mcast_itf def add_vpp_config(self): mcast_sw_if_index = INDEX_INVALID if (self.mcast_itf): mcast_sw_if_index = self.mcast_itf.sw_if_index reply = self.test.vapi.vxlan_gbp_tunnel_add_del( self.src.encode(), self.dst.encode(), vni=self.vni, mcast_sw_if_index=mcast_sw_if_index) self.set_sw_if_index(reply.sw_if_index) self._test.registry.register(self, self._test.logger) def remove_vpp_config(self): mcast_sw_if_index = INDEX_INVALID if (self.mcast_itf): mcast_sw_if_index = self.mcast_itf.sw_if_index self.test.vapi.vxlan_gbp_tunnel_add_del( self.src.encode(), self.dst.encode(), vni=self.vni, is_add=0, mcast_sw_if_index=mcast_sw_if_index) def query_vpp_config(self): return (INDEX_INVALID != find_vxlan_gbp_tunnel(self._test, self.src.address, self.dst.address, self.vni)) def __str__(self): return self.object_id() def object_id(self): return "vxlan-gbp-%d-%d-%s-%s" % (self.sw_if_index, self.vni, self.src, self.dst)