From af487bc4f3e2e840a298661de652aa7a035c935c Mon Sep 17 00:00:00 2001 From: Anton Todorov Date: Tue, 7 Nov 2023 09:29:57 +0200 Subject: [PATCH] B #310: do not delete iface configuration when {IFACE}_METHOD=skip in the contextualization --- src/etc/one-context.d/loc-10-network.d/functions | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/etc/one-context.d/loc-10-network.d/functions b/src/etc/one-context.d/loc-10-network.d/functions index 2b3484f..f4ca7ea 100644 --- a/src/etc/one-context.d/loc-10-network.d/functions +++ b/src/etc/one-context.d/loc-10-network.d/functions @@ -61,6 +61,8 @@ initialize_network() _iface_mac=$(get_interface_mac) for _iface in $_context_interfaces; do + setup_iface_vars "$_iface" + skip_interface && continue _mac=$(get_iface_var "${_iface}" "MAC") _dev=$(get_dev "${_iface_mac}" "${_mac}") @@ -606,4 +608,4 @@ get_onegate_ip() { missing_onegate_proxy_route() { is_link_local "$onegate_host" && [[ $onegate_proxy_route_missing == "yes" ]] -} \ No newline at end of file +}