mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-27 10:04:18 +00:00
Merge pull request #2148 from opensourcerouting/snapupdate
Update SNAP Package to add EIGRP, Babel and PRD
This commit is contained in:
commit
4fb6f51928
@ -73,7 +73,6 @@ int protocol_port; /* babel's port */
|
|||||||
int protocol_socket = -1; /* socket: communicate with others babeld */
|
int protocol_socket = -1; /* socket: communicate with others babeld */
|
||||||
|
|
||||||
static char babel_config_default[] = SYSCONFDIR BABEL_DEFAULT_CONFIG;
|
static char babel_config_default[] = SYSCONFDIR BABEL_DEFAULT_CONFIG;
|
||||||
static char *babel_config_file = NULL;
|
|
||||||
static char *babel_vty_addr = NULL;
|
static char *babel_vty_addr = NULL;
|
||||||
static int babel_vty_port = BABEL_VTY_PORT;
|
static int babel_vty_port = BABEL_VTY_PORT;
|
||||||
|
|
||||||
@ -198,7 +197,7 @@ main(int argc, char **argv)
|
|||||||
babelz_zebra_init ();
|
babelz_zebra_init ();
|
||||||
|
|
||||||
/* Get zebra configuration file. */
|
/* Get zebra configuration file. */
|
||||||
vty_read_config (babel_config_file, babel_config_default);
|
vty_read_config (babeld_di.config_file, babel_config_default);
|
||||||
|
|
||||||
/* init buffer */
|
/* init buffer */
|
||||||
rc = resize_receive_buffer(1500);
|
rc = resize_receive_buffer(1500);
|
||||||
@ -389,7 +388,7 @@ show_babel_main_configuration (struct vty *vty)
|
|||||||
"id = %s\n"
|
"id = %s\n"
|
||||||
"kernel_metric = %d\n",
|
"kernel_metric = %d\n",
|
||||||
state_file,
|
state_file,
|
||||||
babel_config_file ? babel_config_file : babel_config_default,
|
babeld_di.config_file ? babeld_di.config_file : babel_config_default,
|
||||||
format_address(protocol_group),
|
format_address(protocol_group),
|
||||||
protocol_port,
|
protocol_port,
|
||||||
babel_vty_addr ? babel_vty_addr : "None",
|
babel_vty_addr ? babel_vty_addr : "None",
|
||||||
|
0
snapcraft/defaults/babeld.conf.default
Normal file
0
snapcraft/defaults/babeld.conf.default
Normal file
0
snapcraft/defaults/eigrpd.conf.default
Normal file
0
snapcraft/defaults/eigrpd.conf.default
Normal file
0
snapcraft/defaults/pbrd.conf.default
Normal file
0
snapcraft/defaults/pbrd.conf.default
Normal file
@ -12,6 +12,9 @@ install:
|
|||||||
install -D -m 0755 pimd-service $(DESTDIR)/bin/
|
install -D -m 0755 pimd-service $(DESTDIR)/bin/
|
||||||
install -D -m 0755 ldpd-service $(DESTDIR)/bin/
|
install -D -m 0755 ldpd-service $(DESTDIR)/bin/
|
||||||
install -D -m 0755 nhrpd-service $(DESTDIR)/bin/
|
install -D -m 0755 nhrpd-service $(DESTDIR)/bin/
|
||||||
|
install -D -m 0755 babeld-service $(DESTDIR)/bin/
|
||||||
|
install -D -m 0755 eigrpd-service $(DESTDIR)/bin/
|
||||||
|
install -D -m 0755 pbrd-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/babeld-service
Normal file
13
snapcraft/scripts/babeld-service
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e -x
|
||||||
|
|
||||||
|
if ! [ -e $SNAP_DATA/babeld.conf ]; then
|
||||||
|
cp $SNAP/etc/frr/babeld.conf.default $SNAP_DATA/babeld.conf
|
||||||
|
fi
|
||||||
|
exec $SNAP/sbin/babeld \
|
||||||
|
-f $SNAP_DATA/babeld.conf \
|
||||||
|
--pid_file $SNAP_DATA/babeld.pid \
|
||||||
|
--socket $SNAP_DATA/zsock \
|
||||||
|
--vty_socket $SNAP_DATA
|
||||||
|
|
13
snapcraft/scripts/eigrpd-service
Normal file
13
snapcraft/scripts/eigrpd-service
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e -x
|
||||||
|
|
||||||
|
if ! [ -e $SNAP_DATA/eigrpd.conf ]; then
|
||||||
|
cp $SNAP/etc/frr/eigrpd.conf.default $SNAP_DATA/eigrpd.conf
|
||||||
|
fi
|
||||||
|
exec $SNAP/sbin/eigrpd \
|
||||||
|
-f $SNAP_DATA/eigrpd.conf \
|
||||||
|
--pid_file $SNAP_DATA/eigrpd.pid \
|
||||||
|
--socket $SNAP_DATA/zsock \
|
||||||
|
--vty_socket $SNAP_DATA
|
||||||
|
|
13
snapcraft/scripts/pbrd-service
Normal file
13
snapcraft/scripts/pbrd-service
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e -x
|
||||||
|
|
||||||
|
if ! [ -e $SNAP_DATA/pbrd.conf ]; then
|
||||||
|
cp $SNAP/etc/frr/pbrd.conf.default $SNAP_DATA/pbrd.conf
|
||||||
|
fi
|
||||||
|
exec $SNAP/sbin/pbrd \
|
||||||
|
-f $SNAP_DATA/pbrd.conf \
|
||||||
|
--pid_file $SNAP_DATA/pbrd.pid \
|
||||||
|
--socket $SNAP_DATA/zsock \
|
||||||
|
--vty_socket $SNAP_DATA
|
||||||
|
|
@ -4,7 +4,8 @@ summary: FRRouting BGP/OSPFv2/OSPFv3/ISIS/RIP/RIPng/PIM/LDP routing daemon
|
|||||||
description: BGP/OSPFv2/OSPFv3/ISIS/RIP/RIPng/PIM routing daemon
|
description: BGP/OSPFv2/OSPFv3/ISIS/RIP/RIPng/PIM 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 and LDP as well as the IPv6 versions of these.
|
RIPng, PIM, LDP, Babel, EIGRP and PBR (Policy-based routing) 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
|
||||||
@ -91,6 +92,27 @@ apps:
|
|||||||
- network
|
- network
|
||||||
- network-bind
|
- network-bind
|
||||||
- network-control
|
- network-control
|
||||||
|
babeld:
|
||||||
|
command: bin/babeld-service
|
||||||
|
daemon: simple
|
||||||
|
plugs:
|
||||||
|
- network
|
||||||
|
- network-bind
|
||||||
|
- network-control
|
||||||
|
eigrpd:
|
||||||
|
command: bin/eigrpd-service
|
||||||
|
daemon: simple
|
||||||
|
plugs:
|
||||||
|
- network
|
||||||
|
- network-bind
|
||||||
|
- network-control
|
||||||
|
pbrd:
|
||||||
|
command: bin/pbrd-service
|
||||||
|
daemon: simple
|
||||||
|
plugs:
|
||||||
|
- network
|
||||||
|
- network-bind
|
||||||
|
- network-control
|
||||||
set:
|
set:
|
||||||
command: bin/set-options
|
command: bin/set-options
|
||||||
zebra-debug:
|
zebra-debug:
|
||||||
@ -153,6 +175,24 @@ apps:
|
|||||||
- network
|
- network
|
||||||
- network-bind
|
- network-bind
|
||||||
- network-control
|
- network-control
|
||||||
|
babeld-debug:
|
||||||
|
command: sbin/babeld -f $SNAP_DATA/babeld.conf --pid_file $SNAP_DATA/babeld.pid --socket $SNAP_DATA/zsock --vty_socket $SNAP_DATA
|
||||||
|
plugs:
|
||||||
|
- network
|
||||||
|
- network-bind
|
||||||
|
- network-control
|
||||||
|
eigrpd-debug:
|
||||||
|
command: sbin/eigrpd -f $SNAP_DATA/eigrpd.conf --pid_file $SNAP_DATA/eigrpd.pid --socket $SNAP_DATA/zsock --vty_socket $SNAP_DATA
|
||||||
|
plugs:
|
||||||
|
- network
|
||||||
|
- network-bind
|
||||||
|
- network-control
|
||||||
|
pbrd-debug:
|
||||||
|
command: sbin/pbrd -f $SNAP_DATA/pbrd.conf --pid_file $SNAP_DATA/pbrd.pid --socket $SNAP_DATA/zsock --vty_socket $SNAP_DATA
|
||||||
|
plugs:
|
||||||
|
- network
|
||||||
|
- network-bind
|
||||||
|
- network-control
|
||||||
|
|
||||||
parts:
|
parts:
|
||||||
frr:
|
frr:
|
||||||
@ -190,6 +230,9 @@ parts:
|
|||||||
- libtinfo5
|
- libtinfo5
|
||||||
- libreadline6
|
- libreadline6
|
||||||
- libjson-c2
|
- libjson-c2
|
||||||
|
- libc-ares2
|
||||||
|
- libatm1
|
||||||
|
- libprotobuf-c1
|
||||||
plugin: autotools
|
plugin: autotools
|
||||||
source: ../frr-@PACKAGE_VERSION@.tar.gz
|
source: ../frr-@PACKAGE_VERSION@.tar.gz
|
||||||
configflags:
|
configflags:
|
||||||
@ -228,6 +271,9 @@ parts:
|
|||||||
ripngd.conf.default: etc/frr/ripngd.conf.default
|
ripngd.conf.default: etc/frr/ripngd.conf.default
|
||||||
ldpd.conf.default: etc/frr/ldpd.conf.default
|
ldpd.conf.default: etc/frr/ldpd.conf.default
|
||||||
nhrpd.conf.default: etc/frr/nhrpd.conf.default
|
nhrpd.conf.default: etc/frr/nhrpd.conf.default
|
||||||
|
babeld.conf.default: etc/frr/babeld.conf.default
|
||||||
|
eigrpd.conf.default: etc/frr/eigrpd.conf.default
|
||||||
|
pbrd.conf.default: etc/frr/pbrd.conf.default
|
||||||
vtysh.conf.default: etc/frr/vtysh.conf.default
|
vtysh.conf.default: etc/frr/vtysh.conf.default
|
||||||
frr-scripts:
|
frr-scripts:
|
||||||
plugin: make
|
plugin: make
|
||||||
|
Loading…
Reference in New Issue
Block a user