forked from Mirror/frr
snapcraft: Add pathd to FRR snap daemons
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
This commit is contained in:
parent
0e18e9be0f
commit
4baa3aebdc
|
@ -99,6 +99,7 @@ All the commands are prefixed with frr.
|
|||
frr.staticd-debug
|
||||
frr.bfdd-debug
|
||||
frr.fabricd-debug
|
||||
frr.pathd-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, you can enable it
|
||||
|
|
|
@ -18,7 +18,8 @@ ie for `ospf6d` (OSPFv3):
|
|||
systemctl enable snap.frr.ospf6d.service
|
||||
|
||||
The daemons are: `ripd`, `ripngd`, `ospfd`, `ospf6d`, `isisd`, `bgpd`,
|
||||
`pimd`, `ldpd`, `eigrpd`, `babeld`, `nhrpd`, `bfdd`, `zebra`
|
||||
`pimd`, `ldpd`, `eigrpd`, `babeld`, `nhrpd`, `bfdd`, `vrrpd`, `pbrd`,
|
||||
`pathd`, `fabricd`, `staticd`, `zebra`
|
||||
|
||||
Commands defined by this snap
|
||||
-----------------------------
|
||||
|
|
0
snapcraft/defaults/pathd.conf.default
Normal file
0
snapcraft/defaults/pathd.conf.default
Normal file
|
@ -19,6 +19,7 @@ install:
|
|||
install -D -m 0755 bfdd-service $(DESTDIR)/bin/
|
||||
install -D -m 0755 fabricd-service $(DESTDIR)/bin/
|
||||
install -D -m 0755 vrrpd-service $(DESTDIR)/bin/
|
||||
install -D -m 0755 pathd-service $(DESTDIR)/bin/
|
||||
install -D -m 0755 set-options $(DESTDIR)/bin/
|
||||
install -D -m 0755 show_version $(DESTDIR)/bin/
|
||||
|
||||
|
|
13
snapcraft/scripts/pathd-service
Normal file
13
snapcraft/scripts/pathd-service
Normal file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e -x
|
||||
|
||||
if ! [ -e $SNAP_DATA/pathd.conf ]; then
|
||||
cp $SNAP/etc/frr/pathd.conf.default $SNAP_DATA/pathd.conf
|
||||
fi
|
||||
exec $SNAP/sbin/pathd \
|
||||
-f $SNAP_DATA/pathd.conf \
|
||||
--pid_file $SNAP_DATA/pathd.pid \
|
||||
--socket $SNAP_DATA/zsock \
|
||||
--vty_socket $SNAP_DATA
|
||||
|
|
@ -4,8 +4,8 @@ summary: FRRouting BGP/OSPFv2/OSPFv3/ISIS/RIP/RIPng/PIM/LDP/EIGRP/BFD routing da
|
|||
description: BGP/OSPFv2/OSPFv3/ISIS/RIP/RIPng/PIM/LDP/EIGRP/BFD routing daemon
|
||||
FRRouting (FRR) is free software which manages TCP/IP based routing
|
||||
protocols. It supports BGP4, BGP4+, OSPFv2, OSPFv3, IS-IS, RIPv1, RIPv2,
|
||||
RIPng, PIM, LDP, Babel, EIGRP, PBR (Policy-based routing), BFD and OpenFabric
|
||||
as well as the IPv6 versions of these.
|
||||
RIPng, PIM, LDP, Babel, EIGRP, PBR (Policy-based routing), PATHD (Segment
|
||||
routing), BFD and OpenFabric as well as the IPv6 versions of these.
|
||||
FRRouting (frr) is a fork of Quagga.
|
||||
confinement: strict
|
||||
grade: devel
|
||||
|
@ -142,6 +142,13 @@ apps:
|
|||
- network
|
||||
- network-bind
|
||||
- network-control
|
||||
pathd:
|
||||
command: bin/pathd-service
|
||||
daemon: simple
|
||||
plugs:
|
||||
- network
|
||||
- network-bind
|
||||
- network-control
|
||||
set:
|
||||
command: bin/set-options
|
||||
zebra-debug:
|
||||
|
@ -246,6 +253,13 @@ apps:
|
|||
- network
|
||||
- network-bind
|
||||
- network-control
|
||||
pathd-debug:
|
||||
command: sbin/pathd -f $SNAP_DATA/pathd.conf --pid_file $SNAP_DATA/pathd.pid --socket $SNAP_DATA/zsock --vty_socket $SNAP_DATA
|
||||
plugs:
|
||||
- network
|
||||
- network-bind
|
||||
- network-control
|
||||
|
||||
parts:
|
||||
rtrlib:
|
||||
build-packages:
|
||||
|
@ -376,6 +390,7 @@ parts:
|
|||
bfdd.conf.default: etc/frr/bfdd.conf.default
|
||||
fabricd.conf.default: etc/frr/fabricd.conf.default
|
||||
vrrpd.conf.default: etc/frr/vrrpd.conf.default
|
||||
pathd.conf.default: etc/frr/pathd.conf.default
|
||||
vtysh.conf.default: etc/frr/vtysh.conf.default
|
||||
staticd.conf.default: etc/frr/staticd.conf.default
|
||||
frr-scripts:
|
||||
|
|
Loading…
Reference in a new issue