Hongjiang Zhang has proposed merging ~redriver/cloud-init:fix-ifdown-for-frbsd-on-Azure into cloud-init:master.
Requested reviews: cloud-init commiters (cloud-init-dev) For more details, see: https://code.launchpad.net/~redriver/cloud-init/+git/cloud-init/+merge/325713 -- Your team cloud-init commiters is requested to review the proposed merge of ~redriver/cloud-init:fix-ifdown-for-frbsd-on-Azure into cloud-init:master.
diff --git a/cloudinit/sources/DataSourceAzure.py b/cloudinit/sources/DataSourceAzure.py index a0b9eae..fb9c7bd 100644 --- a/cloudinit/sources/DataSourceAzure.py +++ b/cloudinit/sources/DataSourceAzure.py @@ -177,6 +177,10 @@ if util.is_FreeBSD(): RESOURCE_DISK_PATH = "/dev/" + res_disk else: LOG.debug("resource disk is None") + BOUNCE_COMMAND = [ + 'sh', '-xc', + "i=$interface; x=0; ifconfig down $i || x=$?; ifconfig up $i || x=$?; exit $x" + ] BUILTIN_DS_CONFIG = { 'agent_command': AGENT_START_BUILTIN,
_______________________________________________ Mailing list: https://launchpad.net/~cloud-init-dev Post to : cloud-init-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~cloud-init-dev More help : https://help.launchpad.net/ListHelp