vtysh: mark exit-vrf with end when using vtysh -m #4706
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
VRF context blocks have a context-specific exit command in order to
explicitly force an exit to the top level config node. This command
exists because 'ip route' commands are accepted in both
VRF_NODE
andCONFIG_NODE
, so static routes intended to be accepted inCONFIG_NODE
that immediately follow a
VRF_NODE
block will be shoved into theVRF_NODE
block unless the VRF context is explicitly exited.However, because this is a command that exits to
CONFIG_NODE
,vtysh -m
should be printing an
end
at the end of the context, sincefrr-reload.py
relies on this context ender to know when it's back inCONFIG_NODE
. But since this is the only explicit context exit commandthat also exits to
CONFIG_NODE
we don't really have a good way of doingthis already. Hence this god-awful patch.
Signed-off-by: Quentin Young qlyoung@cumulusnetworks.com