diff options
| author | Russ White <russ@riw.us> | 2022-01-25 11:34:59 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-25 11:34:59 -0500 |
| commit | e48b2fea638bacf4138392684b01d69e3327aa6d (patch) | |
| tree | a548e3a820f6107528ded57c739015aae097b31f /ospf6d/ospf6_interface.c | |
| parent | 414db8e341f654387ca00bd79b167bec3fca7cec (diff) | |
| parent | 788a036fdb57d733371b180d1d295ce6ca72bf5d (diff) | |
Merge pull request #10411 from idryzhov/if-config-vrf-name
*: do not print vrf name for interface config when using vrf-lite
Diffstat (limited to 'ospf6d/ospf6_interface.c')
| -rw-r--r-- | ospf6d/ospf6_interface.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/ospf6d/ospf6_interface.c b/ospf6d/ospf6_interface.c index ae9f13bc10..0d9f15d08f 100644 --- a/ospf6d/ospf6_interface.c +++ b/ospf6d/ospf6_interface.c @@ -2522,11 +2522,7 @@ static int config_write_ospf6_interface(struct vty *vty, struct vrf *vrf) if (oi == NULL) continue; - if (vrf->vrf_id == VRF_DEFAULT) - vty_frame(vty, "interface %s\n", oi->interface->name); - else - vty_frame(vty, "interface %s vrf %s\n", - oi->interface->name, vrf->name); + if_vty_config_start(vty, ifp); if (ifp->desc) vty_out(vty, " description %s\n", ifp->desc); @@ -2581,7 +2577,7 @@ static int config_write_ospf6_interface(struct vty *vty, struct vrf *vrf) ospf6_bfd_write_config(vty, oi); - vty_endframe(vty, "exit\n!\n"); + if_vty_config_end(vty); } return 0; } |
