]> git.proxmox.com Git - mirror_frr.git/commitdiff
snap: add vtysh as a "proper" command alias for frr.vtysh
authorJafar Al-Gharaibeh <jafar@atcorp.com>
Thu, 11 May 2017 21:52:27 +0000 (16:52 -0500)
committerQuentin Young <qlyoung@users.noreply.github.com>
Mon, 15 May 2017 16:28:56 +0000 (12:28 -0400)
   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>
snapcraft/README.snap_build.md
snapcraft/README.usage.md
snapcraft/snapcraft.yaml.in

index eeee6a17ad727aa1ae2d3093189532ac908c6309..7c4284845183256709ed42dad2cea83ee422ab8a 100644 (file)
@@ -94,7 +94,16 @@ All the commands are prefixed with frr.
     frr.zebra-debug
 
 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 
-can be created:
+path). If access as `vtysh` instead of `frr.vtysh` is needed, you can enable it
+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
index 537147303a82344ada20552d5849bc60de4d0929..1034790e0069a606c8dafafb13e2c01fdc6f0894 100644 (file)
@@ -109,13 +109,17 @@ FAQ
       `export VTYSH_PAGER=cat` to the end of your `.profile`)
 
 - ospfd / ospf6d are not running after installation
-       - Installing a new snap starts the daemons, but at this time they
-         may not have the required priviledged access. Make sure you 
-         issue the `snap connect` command as given above (can be verified
-         with `snap interfaces`) and **THEN** restart the daemons (or
-         reboot the system). 
-         This is a limitation of any snap package at this time which
-         requires priviledged interfaces (ie to manipulate routing tables)
+    - Installing a new snap starts the daemons, but at this time they
+      may not have the required priviledged access. Make sure you 
+      issue the `snap connect` command as given above (can be verified
+      with `snap interfaces`) and **THEN** restart the daemons (or
+      reboot the system). 
+      This is a limitation of any snap package at this time which
+      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
 ====================
index eb61301953402fe4cd18b388b04d42e85b8b5881..17fabb16f816476f9515d05623aa768acf3d1653 100644 (file)
@@ -16,6 +16,7 @@ apps:
             - network
             - network-bind
             - network-control
+        aliases: [vtysh]
     version:
         command: bin/show_version
     readme: