diff options
Diffstat (limited to 'staticd')
| -rw-r--r-- | staticd/static_nb_config.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/staticd/static_nb_config.c b/staticd/static_nb_config.c index 78378371b0..d7605cb347 100644 --- a/staticd/static_nb_config.c +++ b/staticd/static_nb_config.c @@ -176,6 +176,9 @@ static bool static_nexthop_create(struct nb_cb_create_args *args) nh_vrf = yang_dnode_get_string(args->dnode, "vrf"); pn = nb_running_get_entry(args->dnode, NULL, true); + if (strmatch(ifname, "(null)")) + ifname = ""; + if (!static_add_nexthop_validate(nh_vrf, nh_type, &ipaddr)) flog_warn( EC_LIB_NB_CB_CONFIG_VALIDATE, |
