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 /zebra/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 'zebra/interface.c')
| -rw-r--r-- | zebra/interface.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/zebra/interface.c b/zebra/interface.c index 534953d903..e4e80ec4e9 100644 --- a/zebra/interface.c +++ b/zebra/interface.c @@ -4213,11 +4213,7 @@ static int if_config_write(struct vty *vty) if_data = ifp->info; - if (ifp->vrf->vrf_id == VRF_DEFAULT) - vty_frame(vty, "interface %s\n", ifp->name); - else - vty_frame(vty, "interface %s vrf %s\n", - ifp->name, vrf->name); + if_vty_config_start(vty, ifp); if (if_data) { if (if_data->shutdown == IF_ZEBRA_SHUTDOWN_ON) @@ -4283,7 +4279,7 @@ static int if_config_write(struct vty *vty) zebra_evpn_mh_if_write(vty, ifp); link_params_config_write(vty, ifp); - vty_endframe(vty, "exit\n!\n"); + if_vty_config_end(vty); } return 0; } |
