diff options
| author | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-04-12 16:44:03 -0400 |
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-04-17 14:26:36 -0400 |
| commit | 371fdacc47fae79bce2efa787a4c86585fcb5ef0 (patch) | |
| tree | 43d1c574d403acbf48eb28c775c0bc1d9b4808da | |
| parent | c319e19dbd2462440d718cfd32db061b306e006c (diff) | |
vtysh: remove exit-vrf for vtysh -m
How It's Made:
- vtysh -m is for frr-reload.py to know when a context ends. This is
done by executing commands against the CLI graph, checking for walkup,
and putting the appropriate context exit if walkup is necessary. Thus
the default case for walking up from a vrf context is fine, and
doesn't need a specific exit-vrf command. Remove that.
- exit-vrf needs to be explicitly printed at the end of vrf config
printing. We already do this.
- vtysh's special snowflake config prettiness logic needs to know that
exit-vrf goes with the vrf block and needs to be explicitly told not
place this in alphabetical order in that block. We also already do
this.
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
| -rw-r--r-- | vtysh/vtysh.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c index 7316477891..ec212233f6 100644 --- a/vtysh/vtysh.c +++ b/vtysh/vtysh.c @@ -671,8 +671,6 @@ int vtysh_mark_file(const char *filename) } else if ((prev_node == BGP_EVPN_VNI_NODE) && (tried == 1)) { fprintf(outputfile, "exit-vni\n"); - } else if (prev_node == VRF_NODE && (tried == 1)) { - fprintf(outputfile, "exit-vrf\n"); } else if ((prev_node == KEYCHAIN_KEY_NODE) && (tried == 1)) { fprintf(outputfile, "exit\n"); |
