Merge pull request #14980 from Security-Onion-Solutions/mikebond

Mikebond
This commit is contained in:
Josh Patterson
2025-08-29 11:08:17 -04:00
committed by GitHub
2 changed files with 4 additions and 6 deletions

View File

@@ -39,11 +39,9 @@ combine_bond_script:
- template: jinja - template: jinja
- defaults: - defaults:
CHANNELS: {{ SENSORMERGED.channels }} CHANNELS: {{ SENSORMERGED.channels }}
- onlyif:
- ip link show bond0
execute_combine_bond: execute_combine_bond:
cmd.run: cmd.run:
- name: /usr/sbin/so-combine-bond - name: /usr/sbin/so-combine-bond
- onchanges: - onlyif:
- file: combine_bond_script - ip link show bond0

View File

@@ -18,7 +18,7 @@ fi
# Check if bond0 exists # Check if bond0 exists
if ! ip link show bond0 &>/dev/null; then if ! ip link show bond0 &>/dev/null; then
exit 1 exit 0
fi fi
# Function to get slave interfaces - works across distributions # Function to get slave interfaces - works across distributions
@@ -48,7 +48,7 @@ get_bond_slaves() {
SLAVES=$(get_bond_slaves bond0) SLAVES=$(get_bond_slaves bond0)
if [ -z "$SLAVES" ]; then if [ -z "$SLAVES" ]; then
exit 1 exit 0
fi fi
# Process each slave interface # Process each slave interface