mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 04:47:05 +00:00
snapcraft: Add FabricD to Snap package
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
This commit is contained in:
parent
cf00bad325
commit
b60c4b2c0a
@ -92,6 +92,14 @@ All the commands are prefixed with frr.
|
|||||||
frr.ripngd-debug
|
frr.ripngd-debug
|
||||||
frr.ldp-debug
|
frr.ldp-debug
|
||||||
frr.zebra-debug
|
frr.zebra-debug
|
||||||
|
frr.pimd-debug
|
||||||
|
frr.nhrpd-debug
|
||||||
|
frr.babeld-debug
|
||||||
|
frr.eigrpd-debug
|
||||||
|
frr.pbrd-debug
|
||||||
|
frr.staticd-debug
|
||||||
|
frr.bfdd-debug
|
||||||
|
frr.fabricd-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, you can enable it
|
path). If access as `vtysh` instead of `frr.vtysh` is needed, you can enable it
|
||||||
|
@ -66,6 +66,8 @@ depend on them). These are mainly intended to debug the Snap
|
|||||||
Starts staticd daemon in foreground
|
Starts staticd daemon in foreground
|
||||||
- `frr.bfdd-debug`:
|
- `frr.bfdd-debug`:
|
||||||
Starts bfdd daemon in foreground
|
Starts bfdd daemon in foreground
|
||||||
|
- `frr.fabricd-debug`:
|
||||||
|
Starts fabricd daemon in foreground
|
||||||
|
|
||||||
MPLS (LDP)
|
MPLS (LDP)
|
||||||
----------
|
----------
|
||||||
|
0
snapcraft/defaults/fabricd.conf.default
Normal file
0
snapcraft/defaults/fabricd.conf.default
Normal file
@ -17,6 +17,7 @@ install:
|
|||||||
install -D -m 0755 pbrd-service $(DESTDIR)/bin/
|
install -D -m 0755 pbrd-service $(DESTDIR)/bin/
|
||||||
install -D -m 0755 staticd-service $(DESTDIR)/bin/
|
install -D -m 0755 staticd-service $(DESTDIR)/bin/
|
||||||
install -D -m 0755 bfdd-service $(DESTDIR)/bin/
|
install -D -m 0755 bfdd-service $(DESTDIR)/bin/
|
||||||
|
install -D -m 0755 fabricd-service $(DESTDIR)/bin/
|
||||||
install -D -m 0755 set-options $(DESTDIR)/bin/
|
install -D -m 0755 set-options $(DESTDIR)/bin/
|
||||||
install -D -m 0755 show_version $(DESTDIR)/bin/
|
install -D -m 0755 show_version $(DESTDIR)/bin/
|
||||||
|
|
||||||
|
13
snapcraft/scripts/fabricd-service
Normal file
13
snapcraft/scripts/fabricd-service
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e -x
|
||||||
|
|
||||||
|
if ! [ -e $SNAP_DATA/fabricd.conf ]; then
|
||||||
|
cp $SNAP/etc/frr/fabricd.conf.default $SNAP_DATA/fabricd.conf
|
||||||
|
fi
|
||||||
|
exec $SNAP/sbin/fabricd \
|
||||||
|
-f $SNAP_DATA/fabricd.conf \
|
||||||
|
--pid_file $SNAP_DATA/fabricd.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
|
description: BGP/OSPFv2/OSPFv3/ISIS/RIP/RIPng/PIM/LDP/EIGRP/BFD routing daemon
|
||||||
FRRouting (FRR) is free software which manages TCP/IP based routing
|
FRRouting (FRR) is free software which manages TCP/IP based routing
|
||||||
protocols. It supports BGP4, BGP4+, OSPFv2, OSPFv3, IS-IS, RIPv1, RIPv2,
|
protocols. It supports BGP4, BGP4+, OSPFv2, OSPFv3, IS-IS, RIPv1, RIPv2,
|
||||||
RIPng, PIM, LDP, Babel, EIGRP, PBR (Policy-based routing) and BFD as well as
|
RIPng, PIM, LDP, Babel, EIGRP, PBR (Policy-based routing), BFD and OpenFabric
|
||||||
the IPv6 versions of these.
|
as well as the IPv6 versions of these.
|
||||||
FRRouting (frr) is a fork of Quagga.
|
FRRouting (frr) is a fork of Quagga.
|
||||||
confinement: strict
|
confinement: strict
|
||||||
grade: devel
|
grade: devel
|
||||||
@ -127,6 +127,13 @@ apps:
|
|||||||
- network
|
- network
|
||||||
- network-bind
|
- network-bind
|
||||||
- network-control
|
- network-control
|
||||||
|
fabricd:
|
||||||
|
command: bin/fabricd-service
|
||||||
|
daemon: simple
|
||||||
|
plugs:
|
||||||
|
- network
|
||||||
|
- network-bind
|
||||||
|
- network-control
|
||||||
set:
|
set:
|
||||||
command: bin/set-options
|
command: bin/set-options
|
||||||
zebra-debug:
|
zebra-debug:
|
||||||
@ -219,6 +226,12 @@ apps:
|
|||||||
- network
|
- network
|
||||||
- network-bind
|
- network-bind
|
||||||
- network-control
|
- network-control
|
||||||
|
fabricd-debug:
|
||||||
|
command: sbin/fabricd -f $SNAP_DATA/fabricd.conf --pid_file $SNAP_DATA/fabricd.pid --socket $SNAP_DATA/zsock --vty_socket $SNAP_DATA
|
||||||
|
plugs:
|
||||||
|
- network
|
||||||
|
- network-bind
|
||||||
|
- network-control
|
||||||
|
|
||||||
parts:
|
parts:
|
||||||
rtrlib:
|
rtrlib:
|
||||||
@ -337,6 +350,7 @@ parts:
|
|||||||
eigrpd.conf.default: etc/frr/eigrpd.conf.default
|
eigrpd.conf.default: etc/frr/eigrpd.conf.default
|
||||||
pbrd.conf.default: etc/frr/pbrd.conf.default
|
pbrd.conf.default: etc/frr/pbrd.conf.default
|
||||||
bfdd.conf.default: etc/frr/bfdd.conf.default
|
bfdd.conf.default: etc/frr/bfdd.conf.default
|
||||||
|
fabricd.conf.default: etc/frr/fabricd.conf.default
|
||||||
vtysh.conf.default: etc/frr/vtysh.conf.default
|
vtysh.conf.default: etc/frr/vtysh.conf.default
|
||||||
staticd.conf.default: etc/frr/staticd.conf.default
|
staticd.conf.default: etc/frr/staticd.conf.default
|
||||||
frr-scripts:
|
frr-scripts:
|
||||||
|
Loading…
Reference in New Issue
Block a user