diff options
author | Lou Berger <lberger@labn.net> | 2017-01-29 01:21:03 +0100 |
---|---|---|
committer | Lou Berger <lberger@labn.net> | 2017-01-31 03:18:42 +0100 |
commit | f191d4fa6eb352c454038154053e8443ded4ac46 (patch) | |
tree | d9640e140f024705d4b7ce16133df3ed30c1e35b /bgpd | |
parent | bgpd rfapi: only auto add default tunnel type for local registrations (diff) | |
download | frr-f191d4fa6eb352c454038154053e8443ded4ac46.tar.xz frr-f191d4fa6eb352c454038154053e8443ded4ac46.zip |
bgpd rfapi: pass received label on resolved NVE imports
Signed-off-by: Lou Berger <lberger@labn.net>
Diffstat (limited to 'bgpd')
-rw-r--r-- | bgpd/rfapi/vnc_import_bgp.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bgpd/rfapi/vnc_import_bgp.c b/bgpd/rfapi/vnc_import_bgp.c index 4801e2906..867c27fc6 100644 --- a/bgpd/rfapi/vnc_import_bgp.c +++ b/bgpd/rfapi/vnc_import_bgp.c @@ -464,6 +464,7 @@ vnc_import_bgp_add_route_mode_resolve_nve_one_bi ( uint32_t lifetime; uint32_t *plifetime; struct bgp_attr_encap_subtlv *encaptlvs; + uint32_t label = 0; vnc_zlog_debug_verbose ("%s: entry", __func__); @@ -519,6 +520,9 @@ vnc_import_bgp_add_route_mode_resolve_nve_one_bi ( if (bi->attr && bi->attr->extra && bi->attr->extra->ecommunity) ecommunity_merge (new_ecom, bi->attr->extra->ecommunity); + if (bi->extra) + label = decode_label (bi->extra->tag); + add_vnc_route ( &vncHDResolveNve, bgp, @@ -533,7 +537,7 @@ vnc_import_bgp_add_route_mode_resolve_nve_one_bi ( NULL, new_ecom, med, /* NULL => don't set med */ - NULL, /* label: default */ + (label?&label:NULL), /* NULL= default */ ZEBRA_ROUTE_BGP_DIRECT, BGP_ROUTE_REDISTRIBUTE, RFAPI_AHR_RFPOPT_IS_VNCTLV); /* flags */ |