summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2019-08-01 11:39:34 -0700
committerAndrew Yourtchenko <ayourtch@gmail.com>2019-08-02 11:33:43 +0000
commit23b26e71e79ed4f232ac972948a8a91b554ba5f4 (patch)
tree08944958540e946b78a25cc82013aa24215f31bd /src/plugins
parent2be3eb67931567ecb5948d4e040d3c17a1f85d4c (diff)
lb: fix usage of lb_main in test
Type: fix Change-Id: I9f8a8da31624637c060a9757256589c8f372f192 Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/lb/lb_test.c20
1 files changed, 18 insertions, 2 deletions
diff --git a/src/plugins/lb/lb_test.c b/src/plugins/lb/lb_test.c
index cc8cc58c0be..1edabb51f86 100644
--- a/src/plugins/lb/lb_test.c
+++ b/src/plugins/lb/lb_test.c
@@ -339,6 +339,13 @@ static void vl_api_lb_vip_details_t_handler
(vl_api_lb_vip_details_t * mp)
{
vat_main_t *vam = &vat_main;
+
+ print (vam->ofp, "%24U%14d%14d%18d",
+ format_ip46_address, &mp->vip.pfx.address, IP46_TYPE_ANY,
+ mp->vip.pfx.len,
+ mp->vip.protocol,
+ ntohs (mp->vip.port));
+/*
lb_main_t *lbm = &lb_main;
u32 i = 0;
@@ -354,6 +361,7 @@ static void vl_api_lb_vip_details_t_handler
mp->vip.protocol,
ntohs (mp->vip.port));
}
+*/
}
static int api_lb_vip_dump (vat_main_t * vam)
@@ -372,12 +380,20 @@ static void vl_api_lb_as_details_t_handler
(vl_api_lb_as_details_t * mp)
{
vat_main_t *vam = &vat_main;
- lb_main_t *lbm = &lb_main;
+
+ print (vam->ofp, "%24U%14d%14d%18d%d%d",
+ format_ip46_address, &mp->vip.pfx.address, IP46_TYPE_ANY,
+ mp->vip.pfx.len,
+ mp->vip.protocol,
+ ntohs (mp->vip.port),
+ mp->flags,
+ mp->in_use_since);
//u32 i = 0;
- print (vam->ofp, "%11d", pool_len(lbm->ass));
/*
+ lb_main_t *lbm = &lb_main;
+ print (vam->ofp, "%11d", pool_len(lbm->ass));
for (i=0; i<pool_len(lbm->ass); i--)
{
print (vam->ofp, "%24U%14d%14d%18d",