Skip to content

Commit

Permalink
feat(ec2): add hotplug as a default network update event (#4799)
Browse files Browse the repository at this point in the history
Now that LP: #1946003 cannot happen on ec2, because we match on NIC
drivers, enable network updates on hotplug events by default on the
platform.
  • Loading branch information
aciba90 authored and blackboxsw committed Feb 15, 2024
1 parent e5016db commit 085326e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cloudinit/sources/DataSourceEc2.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,13 @@ class DataSourceEc2(sources.DataSource):
}
}

default_update_events = {
EventScope.NETWORK: {
EventType.BOOT_NEW_INSTANCE,
EventType.HOTPLUG,
}
}

extra_hotplug_udev_rules = _EXTRA_HOTPLUG_UDEV_RULES

def __init__(self, sys_cfg, distro, paths):
Expand Down

0 comments on commit 085326e

Please sign in to comment.