aboutsummaryrefslogtreecommitdiffstats
path: root/extras/vom
diff options
context:
space:
mode:
authorPaul Vinciguerra <pvinci@vinciconsulting.com>2019-06-06 14:07:55 -0400
committerNeale Ranns <nranns@cisco.com>2019-06-26 11:36:57 +0000
commitab05508e1eb96749b68de8ccd2f6f88ff3e64fad (patch)
tree05f290dfff68a24810d0a3bdb2f7227ac4608114 /extras/vom
parent941da4a224bbfc153bfe7c2344ae00e294d92798 (diff)
api: refactor format_vl_api_prefix_t return keys
format_vl_api_prefix_t returns a dict with keys 'address' and 'address_length', but other format_vl_api_prefix functions return a dict with 'prefix', and 'len'. Refactor all format_vl_api_prefix_t to return consistent keys 'address' and 'len'. Type: refactor Change-Id: I5f9558fc2da8742a303266e011102f5b2db80aad Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
Diffstat (limited to 'extras/vom')
-rw-r--r--extras/vom/vom/api_types.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/extras/vom/vom/api_types.cpp b/extras/vom/vom/api_types.cpp
index 721034fc810..5a46571ddea 100644
--- a/extras/vom/vom/api_types.cpp
+++ b/extras/vom/vom/api_types.cpp
@@ -192,7 +192,7 @@ from_api(const vapi_type_mac_address& v)
route::prefix_t
from_api(const vapi_type_prefix& v)
{
- return route::prefix_t(from_api(v.address), v.address_length);
+ return route::prefix_t(from_api(v.address), v.len);
}
vapi_type_prefix
@@ -200,7 +200,7 @@ to_api(const route::prefix_t& p)
{
vapi_type_prefix v;
to_api(p.address(), v.address);
- v.address_length = p.mask_width();
+ v.len = p.mask_width();
return v;
}