aboutsummaryrefslogtreecommitdiffstats
path: root/docs
AgeCommit message (Expand)AuthorFilesLines
2022-08-25vlib: introduce DMA infrastructureMarvin Liu1-0/+3
2022-08-12docs: fix spellcheck error for Ubuntu 22.04Saima Yunus1-0/+1
2022-06-30misc: VPP 22.06 Release NotesAndrew Yourtchenko2-0/+606
2022-06-28docs: fix broken linksPratikshya Prasai1-11/+11
2022-06-14docs: fix spelling errorsDave Wallace1-0/+4
2022-06-13docs: cleaning up VPP documents by deleting unnecessary info.Saima Yunus2-2/+111
2022-05-25docs: update spelling word list and fix typosDave Wallace2-722/+734
2022-05-25misc: Initial 22.10-rc0 commitv22.10-rc0Andrew Yourtchenko2-1/+1
2022-05-24docs: make docs build incrementalNathan Skrzypczak4-51/+68
2022-05-10tests: replace pycodestyle with blackKlement Sekera11-222/+304
2022-05-10ip: reassembly: add documentationKlement Sekera2-0/+2
2022-03-28libmemif: refactor examplesJakub Grajciar4-6/+2
2022-03-25docs: Add getting started with GoVPPNathan Skrzypczak3-87/+174
2022-03-25docs: Fix macos clang-format docsNathan Skrzypczak1-9/+10
2022-02-25misc: VPP 22.02 Release NotesAndrew Yourtchenko2-0/+658
2022-02-17tests: make tests less make dependentKlement Sekera1-95/+82
2022-01-19misc: Initial 22.06-rc0 commitv22.06-rc0Andrew Yourtchenko2-1/+1
2021-12-01docs: add VPP Container Testbench example and labMatthew Giassa9-0/+1280
2021-11-23docs: add missing 21.10 rlsnotesNathan Skrzypczak3-1/+530
2021-11-16docs: consume fd.io version listNathan Skrzypczak2-6/+35
2021-11-15docs: add jira linkNathan Skrzypczak1-0/+2
2021-11-06tests docs: fix jsonschema dependencyDave Wallace1-2/+16
2021-11-02tests: update python packagesDave Wallace1-4/+1
2021-10-13docs: C & C++ apis examplesNathan Skrzypczak6-0/+346
2021-10-13docs: better docs, mv doxygen to sphinxNathan Skrzypczak361-12794/+25242
2021-09-28api: API trace improvementsFilip Tehlar3-66/+66
2021-08-17docs: fix missing dependency on pip-tools for docs-venvDave Wallace1-0/+2
2021-08-13tests docs: upgrade python packagesDave Wallace4-55/+8
2021-07-02ipsec: ADD/update IPSec documentationNeale Ranns1-0/+1
2021-06-11docs: cleanup, remove stale materialDave Barach77-2355/+15
2021-05-14vlib: pass node runtime to vlib_buffer_enqueue_to_thread()Damjan Marion1-1/+1
2021-05-01vlib: refactor trajectory trace debug featureBenoît Ganne1-4/+1
2021-04-21docs: document "make test-help"Dave Barach3-66/+208
2021-03-16docs: ikev2 usecasesFilip Tehlar6-2/+537
2021-03-04docs: Update macos doc to clang-formatNathan Skrzypczak1-15/+13
2021-02-12docs: fixing VPP tutorialArthur de Kerhor3-6/+6
2021-01-28build: do not _FORTIFY_SOURCE in debug modeMohammed Hawari1-3/+3
2021-01-27Change unformat_init_string API in doc to match codehemant_mnkcg1-1/+2
2021-01-22docs: vpp stateless traffic generatorDave Barach2-0/+106
2021-01-20build: add the missing leading underscore to FORTIFY_SOURCENeale Ranns1-8/+8
2021-01-14docs: Update FIB documentationNeale Ranns22-183/+1392
2020-12-21docs: update list of pluginsPaul Vinciguerra4-13/+80
2020-12-18docs: fix missing quotes in ubuntu install instructionsPaul Vinciguerra1-5/+5
2020-12-16docs: revise home gateway use-case documentationDave Barach3-286/+498
2020-12-07docs: Fix CentOS 8 buildJon Loeliger1-1/+7
2020-11-26docs: fix bihash doc bugsDave Barach1-19/+19
2020-11-24buffers: add page-size configNathan Skrzypczak1-0/+14
2020-11-16docs: fix memory troubleshooting docBenoît Ganne2-0/+4
2020-11-10vpp: use vpp heap for libcBenoît Ganne1-0/+84
2020-10-16misc: deprecate VOMDamjan Marion1-1/+1
">def test_encap(self): """ Encapsulation test Send frames from pg1 Verify receipt of encapsulated frames on pg0 """ self.pg1.add_stream([self.frame_reply]) self.pg0.enable_capture() self.pg_start() # Pick first received frame and check if it's corectly encapsulated. out = self.pg0.get_capture(1) pkt = out[0] self.check_encapsulation(pkt, self.single_tunnel_bd) # payload = self.decapsulate(pkt) # self.assert_eq_pkts(payload, self.frame_reply) def test_ucast_flood(self): """ Unicast flood test Send frames from pg3 Verify receipt of encapsulated frames on pg0 """ self.pg3.add_stream([self.frame_reply]) self.pg0.enable_capture() self.pg_start() # Get packet from each tunnel and assert it's corectly encapsulated. out = self.pg0.get_capture(self.n_ucast_tunnels) for pkt in out: self.check_encapsulation(pkt, self.ucast_flood_bd, True) # payload = self.decapsulate(pkt) # self.assert_eq_pkts(payload, self.frame_reply) def test_mcast_flood(self): """ Multicast flood test Send frames from pg2 Verify receipt of encapsulated frames on pg0 """ self.pg2.add_stream([self.frame_reply]) self.pg0.enable_capture() self.pg_start() # Pick first received frame and check if it's corectly encapsulated. out = self.pg0.get_capture(1) pkt = out[0] self.check_encapsulation(pkt, self.mcast_flood_bd, local_only=False, mcast_pkt=True) # payload = self.decapsulate(pkt) # self.assert_eq_pkts(payload, self.frame_reply) @classmethod def create_gtpu_flood_test_bd(cls, teid, n_ucast_tunnels): # Create 10 ucast gtpu tunnels under bd ip_range_start = 10 ip_range_end = ip_range_start + n_ucast_tunnels next_hop_address = cls.pg0.remote_ip4n for dest_ip4n in ip4n_range(next_hop_address, ip_range_start, ip_range_end): # add host route so dest_ip4n will not be resolved cls.vapi.ip_add_del_route(dest_ip4n, 32, next_hop_address) r = cls.vapi.gtpu_add_del_tunnel( src_addr=cls.pg0.local_ip4n, dst_addr=dest_ip4n, teid=teid) cls.vapi.sw_interface_set_l2_bridge(r.sw_if_index, bd_id=teid) @classmethod def add_del_shared_mcast_dst_load(cls, is_add): """ add or del tunnels sharing the same mcast dst to test gtpu ref_count mechanism """ n_shared_dst_tunnels = 20 teid_start = 1000 teid_end = teid_start + n_shared_dst_tunnels for teid in range(teid_start, teid_end): r = cls.vapi.gtpu_add_del_tunnel( src_addr=cls.pg0.local_ip4n, dst_addr=cls.mcast_ip4n, mcast_sw_if_index=1, teid=teid, is_add=is_add) if r.sw_if_index == 0xffffffff: raise "bad sw_if_index" @classmethod def add_shared_mcast_dst_load(cls): cls.add_del_shared_mcast_dst_load(is_add=1) @classmethod def del_shared_mcast_dst_load(cls): cls.add_del_shared_mcast_dst_load(is_add=0) @classmethod def add_del_mcast_tunnels_load(cls, is_add): """ add or del tunnels to test gtpu stability """ n_distinct_dst_tunnels = 20 ip_range_start = 10 ip_range_end = ip_range_start + n_distinct_dst_tunnels for dest_ip4n in ip4n_range(cls.mcast_ip4n, ip_range_start, ip_range_end): teid = bytearray(dest_ip4n)[3] cls.vapi.gtpu_add_del_tunnel( src_addr=cls.pg0.local_ip4n, dst_addr=dest_ip4n, mcast_sw_if_index=1, teid=teid, is_add=is_add) @classmethod def add_mcast_tunnels_load(cls): cls.add_del_mcast_tunnels_load(is_add=1) @classmethod def del_mcast_tunnels_load(cls): cls.add_del_mcast_tunnels_load(is_add=0) # Class method to start the GTPU test case. # Overrides setUpClass method in VppTestCase class. # Python try..except statement is used to ensure that the tear down of # the class will be executed even if exception is raised. # @param cls The class pointer. @classmethod def setUpClass(cls): super(TestGtpu, cls).setUpClass() try: cls.dport = 2152 cls.gtp_type = 0xff # Create 2 pg interfaces. cls.create_pg_interfaces(range(4)) for pg in cls.pg_interfaces: pg.admin_up() # Configure IPv4 addresses on VPP pg0. cls.pg0.config_ip4() # Resolve MAC address for VPP's IP address on pg0. cls.pg0.resolve_arp() # Our Multicast address cls.mcast_ip4 = '239.1.1.1' cls.mcast_ip4n = socket.inet_pton(socket.AF_INET, cls.mcast_ip4) iplong = atol(cls.mcast_ip4) cls.mcast_mac = "01:00:5e:%02x:%02x:%02x" % ( (iplong >> 16) & 0x7F, (iplong >> 8) & 0xFF, iplong & 0xFF) # Create GTPU VTEP on VPP pg0, and put gtpu_tunnel0 and pg1 # into BD. cls.single_tunnel_bd = 11 r = cls.vapi.gtpu_add_del_tunnel( src_addr=cls.pg0.local_ip4n, dst_addr=cls.pg0.remote_ip4n, teid=cls.single_tunnel_bd) cls.vapi.sw_interface_set_l2_bridge(r.sw_if_index, bd_id=cls.single_tunnel_bd) cls.vapi.sw_interface_set_l2_bridge(cls.pg1.sw_if_index, bd_id=cls.single_tunnel_bd) # Setup teid 2 to test multicast flooding cls.n_ucast_tunnels = 10 cls.mcast_flood_bd = 12 cls.create_gtpu_flood_test_bd(cls.mcast_flood_bd, cls.n_ucast_tunnels) r = cls.vapi.gtpu_add_del_tunnel( src_addr=cls.pg0.local_ip4n, dst_addr=cls.mcast_ip4n, mcast_sw_if_index=1, teid=cls.mcast_flood_bd) cls.vapi.sw_interface_set_l2_bridge(r.sw_if_index, bd_id=cls.mcast_flood_bd) cls.vapi.sw_interface_set_l2_bridge(cls.pg2.sw_if_index, bd_id=cls.mcast_flood_bd) # Add and delete mcast tunnels to check stability cls.add_shared_mcast_dst_load() cls.add_mcast_tunnels_load() cls.del_shared_mcast_dst_load() cls.del_mcast_tunnels_load() # Setup teid 3 to test unicast flooding cls.ucast_flood_bd = 13 cls.create_gtpu_flood_test_bd(cls.ucast_flood_bd, cls.n_ucast_tunnels) cls.vapi.sw_interface_set_l2_bridge(cls.pg3.sw_if_index, bd_id=cls.ucast_flood_bd) except Exception: super(TestGtpu, cls).tearDownClass() raise # Method to define VPP actions before tear down of the test case. # Overrides tearDown method in VppTestCase class. # @param self The object pointer. def tearDown(self): super(TestGtpu, self).tearDown() if not self.vpp_dead: self.logger.info(self.vapi.cli("show bridge-domain 11 detail")) self.logger.info(self.vapi.cli("show bridge-domain 12 detail")) self.logger.info(self.vapi.cli("show bridge-domain 13 detail")) self.logger.info(self.vapi.cli("show int")) self.logger.info(self.vapi.cli("show gtpu tunnel")) self.logger.info(self.vapi.cli("show trace")) if __name__ == '__main__': unittest.main(testRunner=VppTestRunner)