~smoser/cloud-init/azure_dhcp

1
2
3
4
5
6
7
8
9
#!/bin/bash
# This script hooks into NetworkManager(8) via its scripts
# arguments are 'interface-name' and 'action'
#

case "$1:$2" in
   *:up) exec cloud-init dhclient_hook up $1;;
   *:down) exec cloud-init dhclient_hook down $1;;
esac