Page MenuHomeVyOS Platform

Add command alias configuration node
Closed, InvalidPublicFEATURE REQUEST

Description

On Cisco Routers/Switches there is a so called command alias configuration node available.

e.g.

alias exec tt copy running-config tftp://172.16.20.200/CONFIGS/BR1.wueI.xxxxx.net-confg

Will create a new custom command "tt" at global configuration level which performs the "copy running-config tftp://172.16.20.200/CONFIGS/BR1.wueI.xxxxx.net-confg" command. Those alias commands could be stored in /etc/bash.bashrc where every system user is able to make use of them.

set system alias command tt "copy file running://config/config.boot to tftp://172.16.20.200/CONFIGS/BR1.wueI.xxxxx.net-confg"

results in:

$ /etc/bash.bashrc
alias tt="copy file running://config/config.boot to tftp://172.16.20.200/CONFIGS/BR1.wueI.xxxxx.net-confg"

Details

Difficulty level
Normal (likely a few hours)
Version
-
Why the issue appeared?
Will be filled on close

Event Timeline

c-po changed Difficulty level from Unknown (require assessment) to Normal (likely a few hours).Aug 28 2017, 11:10 AM

note: careful when overruling vtysh commands (tt == save?)

Good objection. This should be avoided!

syncer triaged this task as Wishlist priority.Dec 21 2017, 9:56 PM

Actually I only wanted to use it got configuration backup.

That's what set system config-management commit-archive location tftp://1.2.3.4/CONFIGS/vyos is for.