Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow -p to be a list of primary interfaceso
New version from #49 Did not feel like github conflict solving :) Some example output: <pre> $ bash check_bond -p eno48,eno49,eno50 OK: - Bondingmode: Bonding Mode: fault-tolerance (active-backup), active link: eno50 $ bash check_bond -p eno49,eno50 OK: - Bondingmode: Bonding Mode: fault-tolerance (active-backup), active link: eno50 $ bash check_bond -p eno50 OK: - Bondingmode: Bonding Mode: fault-tolerance (active-backup), active link: eno50 $ bash check_bond -p eno49 WARNING: Bondingmode: Bonding Mode: fault-tolerance (active-backup), (unexpected) active link: eno50 $ bash check_bond -p eno48 WARNING: Bondingmode: Bonding Mode: fault-tolerance (active-backup), (unexpected) active link: eno50 </pre> Showing that With this bond: <pre> $ cat /proc/net/bonding/bond0 Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011) Bonding Mode: fault-tolerance (active-backup) Primary Slave: None Currently Active Slave: eno50 MII Status: up MII Polling Interval (ms): 100 Up Delay (ms): 0 Down Delay (ms): 0 Slave Interface: eno49 MII Status: up Speed: 10000 Mbps Duplex: full Link Failure Count: 2 Permanent HW addr: aa:qq:aa:aa:aa:a1 Slave queue ID: 0 Slave Interface: eno50 MII Status: up Speed: 10000 Mbps Duplex: full Link Failure Count: 4 Permanent HW addr: aa:qq:aa:aa:aa:a2 Slave queue ID: 0 </pre>
- Loading branch information