Session Segment Manager Multiple Segment Allocation
(self)
| 75 | self.vapi.session_enable_disable(is_enable=0) |
| 76 | |
| 77 | def test_segment_manager_alloc(self): |
| 78 | """Session Segment Manager Multiple Segment Allocation""" |
| 79 | |
| 80 | # Add inter-table routes |
| 81 | ip_t01 = VppIpRoute( |
| 82 | self, |
| 83 | self.loop1.local_ip4, |
| 84 | 32, |
| 85 | [VppRoutePath("0.0.0.0", 0xFFFFFFFF, nh_table_id=1)], |
| 86 | ) |
| 87 | ip_t10 = VppIpRoute( |
| 88 | self, |
| 89 | self.loop0.local_ip4, |
| 90 | 32, |
| 91 | [VppRoutePath("0.0.0.0", 0xFFFFFFFF, nh_table_id=0)], |
| 92 | table_id=1, |
| 93 | ) |
| 94 | ip_t01.add_vpp_config() |
| 95 | ip_t10.add_vpp_config() |
| 96 | |
| 97 | # Start builtin server and client with small private segments |
| 98 | uri = "tcp://" + self.loop0.local_ip4 + "/1234" |
| 99 | error = self.vapi.cli( |
| 100 | "test echo server appns 0 fifo-size 64k " |
| 101 | + "private-segment-size 1m uri " |
| 102 | + uri |
| 103 | ) |
| 104 | if error: |
| 105 | self.logger.critical(error) |
| 106 | self.assertNotIn("failed", error) |
| 107 | |
| 108 | error = self.vapi.cli( |
| 109 | "test echo client nclients 100 appns 1 " |
| 110 | + "fifo-size 64k syn-timeout 2 bytes 8k " |
| 111 | + "private-segment-size 1m uri " |
| 112 | + uri |
| 113 | ) |
| 114 | if error: |
| 115 | self.logger.critical(error) |
| 116 | self.assertNotIn("failed", error) |
| 117 | |
| 118 | if self.vpp_dead: |
| 119 | self.assert_equal(0) |
| 120 | |
| 121 | # Delete inter-table routes |
| 122 | ip_t01.remove_vpp_config() |
| 123 | ip_t10.remove_vpp_config() |
| 124 | |
| 125 | |
| 126 | class TestApplicationNamespace(VppAsfTestCase): |
nothing calls this directly
no test coverage detected