mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-30 22:25:41 +00:00
Merge pull request #9431 from opensourcerouting/snap-1804-master
Snap update to 18.04 base
This commit is contained in:
commit
a7279c5f43
@ -1,7 +1,6 @@
|
|||||||
Building your own FRRouting Snap
|
Building your own FRRouting Snap
|
||||||
========================================
|
========================================
|
||||||
(Tested on Ubuntu 16.04 with Snap Version 2, does not work on Ubuntu 15.x
|
(Tested on Ubuntu 18.04)
|
||||||
which uses earlier versions of snaps)
|
|
||||||
|
|
||||||
1. Install snapcraft:
|
1. Install snapcraft:
|
||||||
|
|
||||||
@ -100,6 +99,7 @@ All the commands are prefixed with frr.
|
|||||||
frr.staticd-debug
|
frr.staticd-debug
|
||||||
frr.bfdd-debug
|
frr.bfdd-debug
|
||||||
frr.fabricd-debug
|
frr.fabricd-debug
|
||||||
|
frr.pathd-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
|
||||||
|
@ -18,7 +18,8 @@ ie for `ospf6d` (OSPFv3):
|
|||||||
systemctl enable snap.frr.ospf6d.service
|
systemctl enable snap.frr.ospf6d.service
|
||||||
|
|
||||||
The daemons are: `ripd`, `ripngd`, `ospfd`, `ospf6d`, `isisd`, `bgpd`,
|
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
|
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 bfdd-service $(DESTDIR)/bin/
|
||||||
install -D -m 0755 fabricd-service $(DESTDIR)/bin/
|
install -D -m 0755 fabricd-service $(DESTDIR)/bin/
|
||||||
install -D -m 0755 vrrpd-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 set-options $(DESTDIR)/bin/
|
||||||
install -D -m 0755 show_version $(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,11 +4,12 @@ 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), BFD and OpenFabric
|
RIPng, PIM, LDP, Babel, EIGRP, PBR (Policy-based routing), PATHD (Segment
|
||||||
as well as the IPv6 versions of these.
|
routing), BFD and OpenFabric 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
|
||||||
|
base: core18
|
||||||
|
|
||||||
apps:
|
apps:
|
||||||
vtysh:
|
vtysh:
|
||||||
@ -141,6 +142,13 @@ apps:
|
|||||||
- network
|
- network
|
||||||
- network-bind
|
- network-bind
|
||||||
- network-control
|
- network-control
|
||||||
|
pathd:
|
||||||
|
command: bin/pathd-service
|
||||||
|
daemon: simple
|
||||||
|
plugs:
|
||||||
|
- network
|
||||||
|
- network-bind
|
||||||
|
- network-control
|
||||||
set:
|
set:
|
||||||
command: bin/set-options
|
command: bin/set-options
|
||||||
zebra-debug:
|
zebra-debug:
|
||||||
@ -245,6 +253,13 @@ apps:
|
|||||||
- network
|
- network
|
||||||
- network-bind
|
- network-bind
|
||||||
- network-control
|
- 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:
|
parts:
|
||||||
rtrlib:
|
rtrlib:
|
||||||
build-packages:
|
build-packages:
|
||||||
@ -254,6 +269,7 @@ parts:
|
|||||||
- libssh-dev
|
- libssh-dev
|
||||||
stage-packages:
|
stage-packages:
|
||||||
- libssh-4
|
- libssh-4
|
||||||
|
- zlib1g
|
||||||
prime:
|
prime:
|
||||||
- lib/librtr.so*
|
- lib/librtr.so*
|
||||||
- usr/lib/x86_64-linux-gnu/libssh.so*
|
- usr/lib/x86_64-linux-gnu/libssh.so*
|
||||||
@ -268,12 +284,12 @@ parts:
|
|||||||
- cmake
|
- cmake
|
||||||
- make
|
- make
|
||||||
- gcc
|
- gcc
|
||||||
- libpcre3-dev
|
- libpcre2-dev
|
||||||
stage-packages:
|
stage-packages:
|
||||||
- libpcre3
|
- libpcre2-8-0
|
||||||
source: https://github.com/CESNET/libyang.git
|
source: https://github.com/CESNET/libyang.git
|
||||||
source-type: git
|
source-type: git
|
||||||
source-tag: v1.0.184
|
source-tag: v2.0.7
|
||||||
plugin: cmake
|
plugin: cmake
|
||||||
configflags:
|
configflags:
|
||||||
- -DCMAKE_INSTALL_PREFIX:PATH=/usr
|
- -DCMAKE_INSTALL_PREFIX:PATH=/usr
|
||||||
@ -298,7 +314,6 @@ parts:
|
|||||||
- imagemagick
|
- imagemagick
|
||||||
- ghostscript
|
- ghostscript
|
||||||
- groff
|
- groff
|
||||||
- hardening-wrapper
|
|
||||||
- libpcre3-dev
|
- libpcre3-dev
|
||||||
- chrpath
|
- chrpath
|
||||||
- pkg-config
|
- pkg-config
|
||||||
@ -315,12 +330,20 @@ parts:
|
|||||||
- logrotate
|
- logrotate
|
||||||
- libcap2
|
- libcap2
|
||||||
- libtinfo5
|
- libtinfo5
|
||||||
- libreadline6
|
- libreadline7
|
||||||
- libjson-c2
|
- libjson-c3
|
||||||
- libc-ares2
|
- libc-ares2
|
||||||
- libatm1
|
- libatm1
|
||||||
- libprotobuf-c1
|
- libprotobuf-c1
|
||||||
- libdb5.3
|
- libdb5.3
|
||||||
|
- libacl1
|
||||||
|
- libattr1
|
||||||
|
- libaudit1
|
||||||
|
- libcap-ng0
|
||||||
|
- libpam0g
|
||||||
|
- libpcre3
|
||||||
|
- libselinux1
|
||||||
|
- libxtables12
|
||||||
plugin: autotools
|
plugin: autotools
|
||||||
source: ../frr-@PACKAGE_VERSION@.tar.gz
|
source: ../frr-@PACKAGE_VERSION@.tar.gz
|
||||||
configflags:
|
configflags:
|
||||||
@ -367,6 +390,7 @@ parts:
|
|||||||
bfdd.conf.default: etc/frr/bfdd.conf.default
|
bfdd.conf.default: etc/frr/bfdd.conf.default
|
||||||
fabricd.conf.default: etc/frr/fabricd.conf.default
|
fabricd.conf.default: etc/frr/fabricd.conf.default
|
||||||
vrrpd.conf.default: etc/frr/vrrpd.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
|
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:
|
||||||
@ -376,6 +400,8 @@ parts:
|
|||||||
stage-packages:
|
stage-packages:
|
||||||
- telnet
|
- telnet
|
||||||
- traceroute
|
- traceroute
|
||||||
|
- libgcc1
|
||||||
|
- libstdc++6
|
||||||
plugin: make
|
plugin: make
|
||||||
source: helpers
|
source: helpers
|
||||||
prime:
|
prime:
|
||||||
@ -390,8 +416,3 @@ parts:
|
|||||||
README.snap_build.md: doc/README.snap_build.md
|
README.snap_build.md: doc/README.snap_build.md
|
||||||
extra_version_info.txt: doc/extra_version_info.txt
|
extra_version_info.txt: doc/extra_version_info.txt
|
||||||
|
|
||||||
passthrough:
|
|
||||||
layout:
|
|
||||||
/usr/lib/x86_64-linux-gnu/libyang1:
|
|
||||||
bind: $SNAP/usr/lib/x86_64-linux-gnu/libyang1
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user