summaryrefslogtreecommitdiffstats
path: root/src/vnet/mpls/mpls_api.c
AgeCommit message (Expand)AuthorFilesLines
2018-01-18FIB Inherited SrouceNeale Ranns1-2/+2
2018-01-11api: remove transport specific code from handlersFlorin Coras1-12/+12
2018-01-09api: refactor vlibmemoryFlorin Coras1-4/+4
2017-11-10Break up vpe.apiNeale Ranns1-0/+18
2017-11-09BIERNeale Ranns1-1/+1
2017-11-07UDP Encapsulation.Neale Ranns1-1/+3
2017-10-14Source Lookup progammable via APINeale Ranns1-2/+13
2017-10-05Distributed Virtual Router SupportNeale Ranns1-7/+1
2017-09-18Fixes for issues Coverity has reported (VPP-972)Chris Luke1-1/+1
2017-09-13Add a name to the creation of an IP and MPLS tableNeale Ranns1-10/+14
2017-09-11FIB table add/delete APINeale Ranns1-9/+57
2017-09-06Fixes for issues raised by Coverity (VPP-972)Chris Luke1-3/+0
2017-08-14FIB table add/delete API onlyNeale Ranns1-0/+17
2017-08-08L2 over MPLSNeale Ranns1-14/+7
2017-08-01FIB path weight incorrect in dump (VPP-922)Neale Ranns1-2/+4
2017-07-18FIB path preferenceNeale Ranns1-0/+1
2017-04-07MPLS McastNeale Ranns1-33/+64
2017-04-01MTRIE Optimisations 2Neale Ranns1-10/+28
2017-03-02Clean up binary api message handler registration issuesDave Barach1-27/+1
2017-01-10API refactoring : l2, mpls, srPavel Kotucek1-0/+497
table_id = 0 for i in self.lo_interfaces: i.admin_up() if table_id != 0: tbl = VppIpTable(self, table_id) tbl.add_vpp_config() i.set_table_ip4(table_id) i.config_ip4() table_id += 1 # Configure namespaces self.vapi.app_namespace_add(namespace_id="0", sw_if_index=self.loop0.sw_if_index) self.vapi.app_namespace_add(namespace_id="1", sw_if_index=self.loop1.sw_if_index) def tearDown(self): for i in self.lo_interfaces: i.unconfig_ip4() i.set_table_ip4(0) i.admin_down() self.vapi.session_enable_disable(is_enabled=0) super(TestSCTP, self).tearDown() def test_sctp_transfer(self): """ SCTP echo client/server transfer """ # Add inter-table routes ip_t01 = VppIpRoute(self, self.loop1.local_ip4, 32, [VppRoutePath("0.0.0.0", 0xffffffff, nh_table_id=1)]) ip_t10 = VppIpRoute(self, self.loop0.local_ip4, 32, [VppRoutePath("0.0.0.0", 0xffffffff, nh_table_id=0)], table_id=1) ip_t01.add_vpp_config() ip_t10.add_vpp_config() # Start builtin server and client uri = "sctp://" + self.loop0.local_ip4 + "/1234" error = self.vapi.cli("test echo server appns 0 fifo-size 4 uri " + uri) if error: self.logger.critical(error) self.assertEqual(error.find("failed"), -1) error = self.vapi.cli("test echo client nclients 2 mbytes 100" + " appns 1" + " fifo-size 4" + " no-output test-bytes syn-timeout 3" + " uri " + uri) if error: self.logger.critical(error) self.assertEqual(error.find("failed"), -1) # Delete inter-table routes ip_t01.remove_vpp_config() ip_t10.remove_vpp_config() if __name__ == '__main__': unittest.main(testRunner=VppTestRunner)