~smoser/cloud-init/azure_dhcp

1
2
3
4
5
6
7
8
9
#!/bin/bash
# This script writes DHCP lease information into the cloud-init run directory
# It is sourced, not executed.  For more information see dhclient-script(8).

case "$reason" in
   BOUND) cloud-init dhclient_hook up "$interface";;
   DOWN|RELEASE|REBOOT|STOP|EXPIRE)
      cloud-init dhclient_hook down "$interface";;
esac