vty: Refactored vty_go_parent(), 'end' and 'exit'

Put all 'exit' logic into vty_go_parent() and replace the
implementations of 'exit' and 'end' by generic ones that use
vty_go_parent().
1 file changed