snap: add vtysh as a "proper" command alias for frr.vtysh

This allows direct access to vtysh without the "frr." prefix.
   The alias can be enabled by sudo snap frr vtysh

Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
This commit is contained in:
Jafar Al-Gharaibeh 2017-05-11 16:52:27 -05:00 committed by Quentin Young
parent 7b87a0d5c6
commit 7ce9737dd7
3 changed files with 24 additions and 10 deletions

View file

@ -94,7 +94,16 @@ All the commands are prefixed with frr.
frr.zebra-debug frr.zebra-debug
vtysh can be accessed as frr.vtysh (Make sure you have /snap/bin in your vtysh can be accessed as frr.vtysh (Make sure you have /snap/bin in your
path). If access as `vtysh` instead of `frr.vtysh` is needed, a symlink path). If access as `vtysh` instead of `frr.vtysh` is needed, you can enable it
can be created: via a snap alias as follows:
sudo ln -s /snap/bin/frr.vtysh /usr/local/bin/vtysh sudo snap alias frr vtysh
This will add the vtysh command to your /snap/bin for direct access. The output of
sudo snap aliases
should list vtysh command alias as enabled:
App Alias Notes
frr.vtysh vtysh enabled

View file

@ -117,6 +117,10 @@ FAQ
This is a limitation of any snap package at this time which This is a limitation of any snap package at this time which
requires priviledged interfaces (ie to manipulate routing tables) requires priviledged interfaces (ie to manipulate routing tables)
- Can I run vtysh directly without the "frr." prefix?
- Yes, enable the vtysh alias in the frr snap package by:
sudo snap alias frr vtysh
Sourcecode available Sourcecode available
==================== ====================

View file

@ -16,6 +16,7 @@ apps:
- network - network
- network-bind - network-bind
- network-control - network-control
aliases: [vtysh]
version: version:
command: bin/show_version command: bin/show_version
readme: readme: