Last active
January 15, 2019 10:27
-
-
Save andrewdmcleod/6b0849f638c840550d11a47a20668acd to your computer and use it in GitHub Desktop.
add route to juju deployed containers using fan networking
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
#!/bin/bash | |
# wait for first juju machine to get an IP addres, and then: | |
fannet=`juju model-config fan-config | awk -F '=' '{print $2}'` | |
sudo route del -net $fannet | |
firstmachine=`juju machines|egrep -v 'Machine|lxd'|head -n1` | |
sudo route add -net $fannet gw $firstmachine |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment