-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added FRR template, modified patches for vyos to correctly patch root…
…fs files
- Loading branch information
Showing
9 changed files
with
163 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
config | ||
custom | ||
info | ||
logfile | ||
rootfs | ||
ubuntu-16.04-frr_16.04-1_amd64.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
|
||
BASEDIR:=$(shell dab basedir) | ||
include ../Makefile.global | ||
|
||
.PHONY: bootstrap global finalize | ||
all: info/init_ok bootstrap global finalize | ||
|
||
bootstrap: | ||
dab bootstrap | ||
|
||
# These are known packaged dependancies | ||
dab install autoconf automake libtool make gawk libreadline-dev git | ||
dab install texinfo dejagnu pkg-config libpam0g-dev libjson-c-dev bison | ||
dab install python-pytest libc-ares-dev python3-dev | ||
|
||
# See custom.sh for build and configuration scripts for frr | ||
|
||
install -m 0700 runonce.sh ${BASEDIR}/etc/init.d/firstboot | ||
dab exec update-rc.d firstboot defaults | ||
install -m 0700 custom.sh ${BASEDIR}/tmp | ||
dab exec /bin/bash /tmp/custom.sh | ||
dab exec rm -f /tmp/custom.sh | ||
|
||
finalize: | ||
dab finalize | ||
|
||
info/init_ok: dab.conf | ||
dab init | ||
touch $@ | ||
|
||
.PHONY: template | ||
template: | ||
cp ubuntu-16.04-frr_16.04-1_amd64.tar.gz /var/lib/vz/template/cache | ||
|
||
.PHONY: clean | ||
clean: | ||
dab clean | ||
rm -f *~ | ||
|
||
.PHONY: dist-clean | ||
dist-clean: | ||
dab dist-clean | ||
rm -f *~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/bash | ||
|
||
cd /usr/src | ||
git clone https://github.com/frrouting/frr.git frr | ||
|
||
cd frr | ||
./bootstrap.sh | ||
./configure \ | ||
--prefix=/usr \ | ||
--enable-exampledir=/usr/share/doc/frr/examples/ \ | ||
--localstatedir=/var/run/frr \ | ||
--sbindir=/usr/lib/frr \ | ||
--sysconfdir=/etc/frr \ | ||
--enable-pimd \ | ||
--enable-watchfrr \ | ||
--enable-ospfclient=yes \ | ||
--enable-ospfapi=yes \ | ||
--enable-multipath=64 \ | ||
--enable-user=frr \ | ||
--enable-group=frr \ | ||
--enable-vty-group=frrvty \ | ||
--enable-configfile-mask=0640 \ | ||
--enable-logfile-mask=0640 \ | ||
--enable-rtadv \ | ||
--enable-tcp-zebra \ | ||
--enable-fpm \ | ||
--with-pkg-git-version | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Suite: xenial | ||
CacheDir: ../cache | ||
Source: http://archive.ubuntu.com/ubuntu SUITE main restricted universe multiverse | ||
Source: http://archive.ubuntu.com/ubuntu SUITE-updates main restricted universe multiverse | ||
Source: http://archive.ubuntu.com/ubuntu SUITE-security main restricted universe multiverse | ||
Architecture: amd64 | ||
Name: frr | ||
Version: 16.04-1 | ||
Section: system | ||
Maintainer: Nathan Gardiner <[email protected]> | ||
Infopage: https://github.com/FRRouting/frr | ||
Description: Free-Range Routing (FRR) | ||
FRRouting is free software that manages various IPv4 and IPv6 routing | ||
protocols. | ||
Currently FRRouting supports BGP4, BGP4+, OSPFv2, OSPFv3, RIPv1, RIPv2, RIPng, PIM-SM/MSDP and LDP as well as very early support for IS-IS. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#!/bin/bash | ||
### BEGIN INIT INFO | ||
# Provides: firstboot | ||
# Required-Start: $local_fs | ||
# Required-Stop: | ||
# Should-Start: $network $portmap nfs-common udev-mtab | ||
# Default-Start: S | ||
# Default-Stop: | ||
# Short-Description: First-boot system customization routines | ||
# Description: Provides first-boot system customization for | ||
# proxmox container templates. | ||
# Removes itself entirely when done. | ||
### END INIT INFO | ||
|
||
case "$1" in | ||
start) | ||
|
||
# Put first boot routines here | ||
|
||
# Create FRR user/group | ||
groupadd -g 92 frr | ||
groupadd -r -g 85 frrvty | ||
adduser --system --ingroup frr --home /var/run/frr/ --gecos "FRR suite" --shell /sbin/nologin frr | ||
usermod -a -G frrvty frr | ||
|
||
# Once the script has completed execution, delete ourselves | ||
update-rc.d firstboot disable | ||
rm $0 | ||
;; | ||
stop) | ||
echo "Not Implemented" | ||
;; | ||
status) | ||
echo "Not Implemented" | ||
;; | ||
restart|force-reload) | ||
echo "Not Implemented" | ||
;; | ||
*) | ||
echo "Usage: /etc/init.d/$NAME {start}" >&2 | ||
exit 1 | ||
;; | ||
esac | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters