Skip to content

Instantly share code, notes, and snippets.

@andrewdmcleod
Last active January 15, 2019 10:27
Show Gist options
  • Save andrewdmcleod/6b0849f638c840550d11a47a20668acd to your computer and use it in GitHub Desktop.
Save andrewdmcleod/6b0849f638c840550d11a47a20668acd to your computer and use it in GitHub Desktop.
add route to juju deployed containers using fan networking
#!/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