Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Commit

Permalink
B #310: do not delete iface configuration
Browse files Browse the repository at this point in the history
when {IFACE}_METHOD=skip in the contextualization
  • Loading branch information
atodorov-storpool authored Nov 7, 2023
1 parent 27b1b1f commit af487bc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/etc/one-context.d/loc-10-network.d/functions
Original file line number Diff line number Diff line change
Expand Up @@ -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}")

Expand Down Expand Up @@ -606,4 +608,4 @@ get_onegate_ip() {

missing_onegate_proxy_route() {
is_link_local "$onegate_host" && [[ $onegate_proxy_route_missing == "yes" ]]
}
}

0 comments on commit af487bc

Please sign in to comment.