diff options
author | Filip Tehlar <ftehlar@cisco.com> | 2016-07-07 15:40:36 +0200 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2016-07-08 14:15:37 +0000 |
commit | 4d5cabde54f847bccd365c64682e428aead30550 (patch) | |
tree | 141d2eec6d5037689248da577db868f39afa38b9 /vpp/vpp-api | |
parent | bbae375ca20df350b26bb97cbe63835661379457 (diff) |
Add locator prority and weight to LISP API
Change-Id: Ifa9bcd9a9c5dbda00ff8096909ccbc822445b8cb
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Diffstat (limited to 'vpp/vpp-api')
-rw-r--r-- | vpp/vpp-api/api.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/vpp/vpp-api/api.c b/vpp/vpp-api/api.c index 330222fb..f7338af5 100644 --- a/vpp/vpp-api/api.c +++ b/vpp/vpp-api/api.c @@ -5013,6 +5013,8 @@ vl_api_lisp_add_del_map_request_itr_rlocs_t_handler typedef CLIB_PACKED(struct { u8 is_ip4; /**< is locator an IPv4 address */ + u8 priority; /**< locator priority */ + u8 weight; /**< locator weight */ u8 addr[16]; /**< IPv4/IPv6 address */ }) rloc_t; @@ -5090,9 +5092,8 @@ vl_api_lisp_add_del_remote_mapping_t_handler ( r->is_ip4 ? IP4 : IP6); gid_address_ippref_len(&rloc.address) = r->is_ip4 ? 32: 128; gid_address_type(&rloc.address) = GID_ADDR_IP_PREFIX; - /* TODO fix API to pass priority and weight */ - rloc.priority = 1; - rloc.weight = 1; + rloc.priority = r->priority; + rloc.weight = r->weight; vec_add1 (rlocs, rloc); } @@ -5184,9 +5185,8 @@ vl_api_lisp_add_del_adjacency_t_handler ( r->is_ip4 ? IP4 : IP6); gid_address_ippref_len(&rloc.address) = r->is_ip4 ? 32: 128; gid_address_type(&rloc.address) = GID_ADDR_IP_PREFIX; - /* TODO fix API to pass priority and weight */ - rloc.priority = 1; - rloc.weight = 1; + rloc.priority = r->priority; + rloc.weight = r->weight; vec_add1 (a->locators, rloc); } |