ncsa / xcat-tools

Useful tools for xCAT
BSD 3-Clause "New" or "Revised" License
8 stars 0 forks source link

SVCPLAN-5104: update disable_ipv6 postscript to handle bonds #56

Closed jakerundall closed 6 months ago

jakerundall commented 6 months ago

To handle bonds and slaves we must update the logic for active_ethernet_connections as follows: (1) grep for "bond" as well as "ethernet" (bonds have type "bond"); (2) include the "NAME" field in nmcli "show" output, so that we can identify slaves; (3) "grep -v slave" to ignore bonds (it is not relevant to disable IPv6 on a slave and trying to do so results in an error)

jakerundall commented 6 months ago

I've tested on Magnus (mgtesthn1, which has an Ethernet bond, and mgtest[04,05], which don't).