Skip to content

Commit

Permalink
Fixes to improve the frr template functionality on first boot/service…
Browse files Browse the repository at this point in the history
… start
  • Loading branch information
ngardiner committed May 1, 2017
1 parent 7d79e57 commit 440d9a2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
9 changes: 9 additions & 0 deletions frr/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,12 @@ After booting, you should:

- Edit ```/etc/frr/daemons``` and enable the daemons you require
- Restart the frr daemons with the ```systemctl restart frr``` command
- Set a password for the ```admin``` user, which is a user we create during build to provide direct cli access to FRR
```
passwd admin
```
- Log in as admin, and start using your router.

## Bugs

There appears to be a bug with the frr vtysh now that will cause vtysh to lose connections to daemons if you change the hostname via the CLI - not recommended currently.
7 changes: 7 additions & 0 deletions frr/runonce.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ case "$1" in

# Put first boot routines here

# Enable and start daemon
systemctl enable frr
systemctl start frr

# Create cli user
useradd -c "FRR CLI User" -d /root -g 0 -M -N -o -s /usr/bin/vtysh -u 0 admin

# Once the script has completed execution, delete ourselves
update-rc.d firstboot disable
rm $0
Expand Down

0 comments on commit 440d9a2

Please sign in to comment.