diff options
| author | Rafael Zalamena <rzalamena@users.noreply.github.com> | 2020-11-03 11:59:38 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-03 11:59:38 -0300 |
| commit | 7c62dc76d4e78cce352d511fea89f908a9ee30ce (patch) | |
| tree | b7eadd961c71dd302d2c1800cb1d6abee2677c38 /ospf6d/ospf6_neighbor.c | |
| parent | e035e7142ecaae8f284f533b508cab5108350631 (diff) | |
| parent | 96117716ba3f194d75ef45e630b0a0b551e0a313 (diff) | |
Merge pull request #7261 from Niral-Networks/niral_dev_vrf_ospf6
ospf6d : Transformation changes for ospf6 vrf support.
Diffstat (limited to 'ospf6d/ospf6_neighbor.c')
| -rw-r--r-- | ospf6d/ospf6_neighbor.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/ospf6d/ospf6_neighbor.c b/ospf6d/ospf6_neighbor.c index f8676e0c13..9f13ecffa1 100644 --- a/ospf6d/ospf6_neighbor.c +++ b/ospf6d/ospf6_neighbor.c @@ -786,8 +786,11 @@ DEFUN (show_ipv6_ospf6_neighbor, struct ospf6_area *oa; struct listnode *i, *j, *k; void (*showfunc)(struct vty *, struct ospf6_neighbor *); + struct ospf6 *ospf6; - OSPF6_CMD_CHECK_RUNNING(); + ospf6 = ospf6_lookup_by_vrf_name(VRF_DEFAULT_NAME); + + OSPF6_CMD_CHECK_RUNNING(ospf6); showfunc = ospf6_neighbor_show; if (argc == 5) { @@ -831,8 +834,10 @@ DEFUN (show_ipv6_ospf6_neighbor_one, struct listnode *i, *j, *k; void (*showfunc)(struct vty *, struct ospf6_neighbor *); uint32_t router_id; + struct ospf6 *ospf6; - OSPF6_CMD_CHECK_RUNNING(); + ospf6 = ospf6_lookup_by_vrf_name(VRF_DEFAULT_NAME); + OSPF6_CMD_CHECK_RUNNING(ospf6); showfunc = ospf6_neighbor_show_detail; if ((inet_pton(AF_INET, argv[idx_ipv4]->arg, &router_id)) != 1) { |
