Add bonds for 2 hypervisors
This commit is contained in:
parent
01343ec62d
commit
b529374c69
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue