-Building your own FreeRangeRouting Snap
+Building your own FRRouting Snap
========================================
(Tested on Ubuntu 16.04 with Snap Version 2, does not work on Ubuntu 15.x
which uses earlier versions of snaps)
sudo apt-get install snapcraft
-2. Checkout FreeRangeRouting under a **unpriviledged** user account
+2. Checkout FRRouting under a **unpriviledged** user account
- git clone https://github.com/freerangerouting/frr.git
+ git clone https://github.com/frrouting/frr.git
cd frr
-3. Run Bootstrap and make distribution tar.gz
+3. (Optional) Add extra version information to
+ `snapcraft/extra_version_info.txt`. Information in this file will
+ be displayed with the frr.version command (simple `cat` after
+ the display of the `zebra --version` output)
+
+4. Run Bootstrap and make distribution tar.gz
./bootstrap.sh
./configure --with-pkg-extra-version=-MySnapVersion
This will build `frr-something.tar.gz` - the distribution tar and
the snapcraft/snapcraft.yaml with the matching version number
-4. Create snap
+5. Create snap
cd snapcraft
snapcraft
Connect the priviledged `network-control` plug to the snap:
- snap connect frr:network-control ubuntu-core:network-control
+ snap connect frr:network-control core:network-control
+See README.usage.md for more details on setting up and using the snap
+
DONE.
The Snap will be auto-started and running.
Operations
==========
-### FreeRangeRouting Daemons
-At this time, all FreeRangeRouting daemons are auto-started.
+### FRRouting Daemons
+At this time, all FRRouting daemons are auto-started.
A daemon can be stopped/started with (ie ospf6d)
systemctl disable snap.frr.ospf6d.service
systemctl enable snap.frr.ospf6d.service
-### FreeRangeRouting Commands
+### FRRouting Commands
All the commands are prefixed with frr.
frr.vtysh -> vtysh
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 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:
- sudo ln -s /snap/bin/frr.vtysh /usr/local/bin/vtysh
+App Alias Notes
+frr.vtysh vtysh enabled