diff options
author | vdhingra <vdhingra@vmware.com> | 2020-07-02 08:54:50 +0200 |
---|---|---|
committer | vdhingra <vdhingra@vmware.com> | 2020-07-16 17:40:45 +0200 |
commit | 314825ff9101ab1f02e99a1f1258346c9f99d171 (patch) | |
tree | 3956cefa625a14bdc22274c9fcef5a1f321edd7b /staticd/static_vty.c | |
parent | zebra: Moving afi-safi identity to lib (diff) | |
download | frr-314825ff9101ab1f02e99a1f1258346c9f99d171.tar.xz frr-314825ff9101ab1f02e99a1f1258346c9f99d171.zip |
staticd: Added afi-safi as a key in route-list
To address the ip mroute command there is a need to add
safi as a key. So adding the afi-safi-type identityref
as a key.
Signed-off-by: VishalDhingra <vdhingra@vmware.com>
Diffstat (limited to 'staticd/static_vty.c')
-rw-r--r-- | staticd/static_vty.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/staticd/static_vty.c b/staticd/static_vty.c index 311462db7..63b425771 100644 --- a/staticd/static_vty.c +++ b/staticd/static_vty.c @@ -174,12 +174,14 @@ static int static_route_leak(struct vty *vty, const char *svrf, FRR_S_ROUTE_SRC_INFO_KEY_XPATH, "frr-staticd:staticd", "staticd", svrf, buf_prefix, + yang_afi_safi_value2identity(afi, safi), buf_src_prefix, distance); else snprintf(xpath_prefix, sizeof(xpath_prefix), FRR_STATIC_ROUTE_INFO_KEY_XPATH, "frr-staticd:staticd", "staticd", svrf, buf_prefix, + yang_afi_safi_value2identity(afi, safi), distance); nb_cli_enqueue_change(vty, xpath_prefix, NB_OP_CREATE, NULL); @@ -288,6 +290,7 @@ static int static_route_leak(struct vty *vty, const char *svrf, FRR_DEL_S_ROUTE_SRC_NH_KEY_XPATH, "frr-staticd:staticd", "staticd", svrf, buf_prefix, + yang_afi_safi_value2identity(afi, safi), buf_src_prefix, distance, buf_nh_type, nh_svrf, buf_gate_str, ifname); else @@ -295,6 +298,7 @@ static int static_route_leak(struct vty *vty, const char *svrf, FRR_DEL_S_ROUTE_NH_KEY_XPATH, "frr-staticd:staticd", "staticd", svrf, buf_prefix, + yang_afi_safi_value2identity(afi, safi), distance, buf_nh_type, nh_svrf, buf_gate_str, ifname); |