diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2021-05-28 18:45:40 +0300 | 
|---|---|---|
| committer | Igor Ryzhov <iryzhov@nfware.com> | 2021-05-28 18:45:40 +0300 | 
| commit | a80618f27d2601b65168d97863878e2d35354c0e (patch) | |
| tree | 9c0a4c457752c18ffa79be139e92f4e2ed5256ef /isisd/isis_cli.c | |
| parent | bf59f4ad20095ca1d3f7cf863f62c25acb4f19ca (diff) | |
isisd: fix using vrf interface as a loopback
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'isisd/isis_cli.c')
| -rw-r--r-- | isisd/isis_cli.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/isisd/isis_cli.c b/isisd/isis_cli.c index 5aea9f25d9..415c25fbf9 100644 --- a/isisd/isis_cli.c +++ b/isisd/isis_cli.c @@ -195,7 +195,7 @@ DEFPY_YANG(ip_router_isis, ip_router_isis_cmd,  	/* check if the interface is a loopback and if so set it as passive */  	ifp = nb_running_get_entry(NULL, VTY_CURR_XPATH, false); -	if (ifp && if_is_loopback(ifp)) +	if (ifp && if_is_loopback_or_vrf(ifp))  		nb_cli_enqueue_change(vty, "./frr-isisd:isis/passive",  				      NB_OP_MODIFY, "true"); @@ -252,7 +252,7 @@ DEFPY_YANG(ip6_router_isis, ip6_router_isis_cmd,  	/* check if the interface is a loopback and if so set it as passive */  	ifp = nb_running_get_entry(NULL, VTY_CURR_XPATH, false); -	if (ifp && if_is_loopback(ifp)) +	if (ifp && if_is_loopback_or_vrf(ifp))  		nb_cli_enqueue_change(vty, "./frr-isisd:isis/passive",  				      NB_OP_MODIFY, "true");  | 
