diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2021-03-20 20:11:16 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-20 20:11:16 -0400 |
| commit | 6dfe243c3884c6ff8be2d72bfb4e8c2ebdf6632c (patch) | |
| tree | e0753d403b2e2df92700475d989adebfb7868b27 /ospf6d/ospf6_interface.c | |
| parent | 13c0040db5c92770ffba662f0f365e9aa159e70f (diff) | |
| parent | d205f01e1d5641ed81f37ccf081e1a93af9da34c (diff) | |
Merge pull request #8278 from ckishimo/ospfv3_iface
ospf6d: fix iface commands lost when removing from area
Diffstat (limited to 'ospf6d/ospf6_interface.c')
| -rw-r--r-- | ospf6d/ospf6_interface.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ospf6d/ospf6_interface.c b/ospf6d/ospf6_interface.c index a5d9138743..f1226edfa7 100644 --- a/ospf6d/ospf6_interface.c +++ b/ospf6d/ospf6_interface.c @@ -1449,6 +1449,12 @@ DEFUN (show_ipv6_ospf6_interface_ifname_prefix, return CMD_WARNING; } + if (CHECK_FLAG(oi->flag, OSPF6_INTERFACE_DISABLE)) { + vty_out(vty, "Interface %s not attached to area\n", + argv[idx_ifname]->arg); + return CMD_WARNING; + } + ospf6_route_table_show(vty, idx_prefix, argc, argv, oi->route_connected, uj); @@ -1482,7 +1488,7 @@ DEFUN (show_ipv6_ospf6_interface_prefix, FOR_ALL_INTERFACES (vrf, ifp) { oi = (struct ospf6_interface *)ifp->info; - if (oi == NULL) + if (oi == NULL || CHECK_FLAG(oi->flag, OSPF6_INTERFACE_DISABLE)) continue; ospf6_route_table_show(vty, idx_prefix, argc, argv, |
