summaryrefslogtreecommitdiff
path: root/tests/integration_tests
diff options
context:
space:
mode:
authorChris Patterson <cpatterson@microsoft.com>2022-02-04 15:16:21 -0500
committerGitHub <noreply@github.com>2022-02-04 14:16:21 -0600
commit826783d83f55b78336cdb9e16ea39a1038618b03 (patch)
tree6186ddc388bdc367794dcc35ca23b7379ee1b6a2 /tests/integration_tests
parent75a5c8f2dcb28167ef6ce6941a498ae4b8d2d0ac (diff)
downloadvyos-cloud-init-826783d83f55b78336cdb9e16ea39a1038618b03.tar.gz
vyos-cloud-init-826783d83f55b78336cdb9e16ea39a1038618b03.zip
sources/azure: consolidate ephemeral DHCP configuration (#1229)
Introduce: - _setup_ephemeral_networking() to bring up networking. If no iface is specified, it will use net.find_fallback_nic() which is consistent with the previous usage of fallback_interface. This method now tracks the encoded address of the wireserver with a new property `_wireserver_endpoint`. Introduce a timeout parameter to allow for retrying for a specified amount of time. - _teardown_ephemeral_networking() to bring down networking. - _is_ephemeral_networking_up() to check status. Ephemeral networking is now: - Brought up prior to checking IMDS. - Torn down following metadata crawl. - For Savable PPS, torn down prior to waiting for NIC detach. The link must be torn down in advance or we will see errors from cleaning up network after the interface is unplugged. - For Running PPS, torn down after waiting for media switch. The link must be up for media switch to be detected. - For all PPS, after network switch is complete, networking is brought back up to poll for reprovision data and report ready. It will be torn down after metadata crawl is complete like non-PPS paths. Additionally: - Remove EphemeralDHCPv4WithReporting variant in favor of directly using EphemeralDHCPv4. The reporting was only for __enter__ usage which is no longer a used path. Continue to use dhcp_log_cb callback. Signed-off-by: Chris Patterson <cpatterson@microsoft.com>
Diffstat (limited to 'tests/integration_tests')
0 files changed, 0 insertions, 0 deletions