diff options
| author | mitesh <mitesh@cumulusnetworks.com> | 2017-10-11 01:32:54 -0700 |
|---|---|---|
| committer | Mitesh Kanjariya <mitesh@marvel-07.cumulusnetworks.com> | 2017-12-14 10:57:05 -0800 |
| commit | d3135ba31d46262e4bd9deaa65e62366cc65a033 (patch) | |
| tree | c69315a89a17150d5fe6929e80a9dab9693bc582 /zebra/zebra_vxlan.c | |
| parent | 10ebe1ab5417af8760a05fb2edd3306847f7e4ba (diff) | |
bgpd: program mac-ip routes in matching vrfs
Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
Diffstat (limited to 'zebra/zebra_vxlan.c')
| -rw-r--r-- | zebra/zebra_vxlan.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/zebra/zebra_vxlan.c b/zebra/zebra_vxlan.c index 962e66068d..03e9fd3185 100644 --- a/zebra/zebra_vxlan.c +++ b/zebra/zebra_vxlan.c @@ -6084,3 +6084,15 @@ void zebra_vxlan_ns_disable(struct zebra_ns *zns) { hash_free(zns->l3vni_table); } + +/* get the l3vni svi ifindex */ +ifindex_t get_l3vni_svi_ifindex(vrf_id_t vrf_id) +{ + zebra_l3vni_t *zl3vni = NULL; + + zl3vni = zl3vni_from_vrf(vrf_id); + if (!zl3vni || !is_l3vni_oper_up(zl3vni)) + return 0; + + return zl3vni->svi_if->ifindex; +} |
