Add bonds for 2 hypervisors

This commit is contained in:
Alex D. 2024-11-10 15:10:30 +00:00
parent 01343ec62d
commit b529374c69
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
2 changed files with 26 additions and 2 deletions

View File

@ -35,6 +35,12 @@ func main() {
Table: 20,
})
// Bonds
ifs.AddIf(&s6netdev.Iface{
Name: "bond10",
Type: &s6netdev.NetdevIfTypes.Bond,
})
// Physical interfaces
for _, v := range []string{"p4s0f0", "p4s0f1", "p2s0f0", "p2s0f1", "p2s0f2", "p2s0f3"} {
ifs.AddIf(&s6netdev.Iface{
@ -180,10 +186,16 @@ func main() {
},
},
{
Master: "phys",
Master: "bond10",
Slaves: []string{
"enp4s0f0",
"enp4s0f1",
},
},
{
Master: "phys",
Slaves: []string{
"bond10",
"enp2s0f0",
"enp2s0f1",
"enp2s0f2",

View File

@ -35,6 +35,12 @@ func main() {
Table: 20,
})
// Bonds
ifs.AddIf(&s6netdev.Iface{
Name: "bond10",
Type: &s6netdev.NetdevIfTypes.Bond,
})
// Physical interfaces
for _, v := range []string{"p129s0f0", "p129s0f1", "p131s0f0", "p131s0f1", "p131s0f2", "p131s0f3"} {
ifs.AddIf(&s6netdev.Iface{
@ -180,10 +186,16 @@ func main() {
},
},
{
Master: "phys",
Master: "bond10",
Slaves: []string{
"enp129s0f0",
"enp129s0f1",
},
},
{
Master: "phys",
Slaves: []string{
"bond10",
"enp131s0f0",
"enp131s0f1",
"enp131s0f2",