aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2021-03-03 10:40:05 +0100
committerDamjan Marion <dmarion@me.com>2021-03-15 17:23:53 +0000
commit4376ab2a926b36c1131588069a8a9cdd2520073d (patch)
treec7315eeed5c134abef38a25d52ba0fb158a14f86 /src/plugins
parent387a08a8be413379618a633b140c58c35a1f6640 (diff)
tests: use socket transport instead of shared memory
Type: improvement Signed-off-by: Ole Troan <ot@cisco.com> Change-Id: I9e65c94a5a05047a5104e9361ea36eac77b40442 Signed-off-by: Ole Troan <ot@cisco.com>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/linux-cp/lcp.api4
-rw-r--r--src/plugins/map/test/test_map.py9
2 files changed, 7 insertions, 6 deletions
diff --git a/src/plugins/linux-cp/lcp.api b/src/plugins/linux-cp/lcp.api
index 49fdeddf886..5bde88082df 100644
--- a/src/plugins/linux-cp/lcp.api
+++ b/src/plugins/linux-cp/lcp.api
@@ -85,13 +85,13 @@ autoreply autoendian define lcp_itf_pair_add_del
@param context - sender context, to match reply w/ request
@param sw_if_index - interface to use as filter (~0 == "all")
*/
-autoendian define lcp_itf_pair_get
+define lcp_itf_pair_get
{
u32 client_index;
u32 context;
u32 cursor;
};
-autoendian define lcp_itf_pair_get_reply
+define lcp_itf_pair_get_reply
{
u32 context;
i32 retval;
diff --git a/src/plugins/map/test/test_map.py b/src/plugins/map/test/test_map.py
index 93ea3f06976..746f0aff2de 100644
--- a/src/plugins/map/test/test_map.py
+++ b/src/plugins/map/test/test_map.py
@@ -114,15 +114,16 @@ class TestMAP(VppTestCase):
def test_api_map_domains_get(self):
# Create a bunch of domains
- domains = self.create_domains('130.67.0.0/24', '2001::/32',
+ no_domains = 4096 # This must be large enough to ensure VPP suspends
+ domains = self.create_domains('130.67.0.0/20', '2001::/32',
'2001::1/128')
- self.assertEqual(len(domains), 256)
+ self.assertEqual(len(domains), no_domains)
d = []
cursor = 0
# Invalid cursor
- rv, details = self.vapi.map_domains_get(cursor=1234)
+ rv, details = self.vapi.map_domains_get(cursor=no_domains+10)
self.assertEqual(rv.retval, -7)
# Delete a domain in the middle of walk
@@ -136,7 +137,7 @@ class TestMAP(VppTestCase):
self.assertEqual(rv.retval, -165)
d = list(self.vapi.vpp.details_iter(self.vapi.map_domains_get))
- self.assertEqual(len(d), 255)
+ self.assertEqual(len(d), no_domains - 1)
# Clean up
for i in domains: