Switch to using network cards instead of management ports as 1G switch links

This commit is contained in:
Alex D. 2024-09-20 15:52:51 +00:00
parent a757587813
commit 43eb413045
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
2 changed files with 10 additions and 5 deletions

View File

@ -24,7 +24,7 @@ func main() {
})
// Physical interfaces
for _, v := range []string{"o2", "o3", "p4s0f0", "p4s0f1"} {
for _, v := range []string{"p4s0f0", "p4s0f1", "p2s0f0", "p2s0f1", "p2s0f2", "p2s0f3"} {
ifs.AddIf(&s6netdev.Iface{
Name: fmt.Sprintf("en%s", v),
Type: &s6netdev.NetdevIfTypes.Phys,
@ -121,10 +121,12 @@ func main() {
{
Master: "phys",
Slaves: []string{
"eno2",
"eno3",
"enp4s0f0",
"enp4s0f1",
"enp2s0f0",
"enp2s0f1",
"enp2s0f2",
"enp2s0f3",
},
},
} {

View File

@ -24,7 +24,7 @@ func main() {
})
// Physical interfaces
for _, v := range []string{"o1", "p129s0f0", "p129s0f1"} {
for _, v := range []string{"p129s0f0", "p129s0f1", "p131s0f0", "p131s0f1", "p131s0f2", "p131s0f3"} {
ifs.AddIf(&s6netdev.Iface{
Name: fmt.Sprintf("en%s", v),
Type: &s6netdev.NetdevIfTypes.Phys,
@ -121,9 +121,12 @@ func main() {
{
Master: "phys",
Slaves: []string{
"eno1",
"enp129s0f0",
"enp129s0f1",
"enp131s0f0",
"enp131s0f1",
"enp131s0f2",
"enp131s0f3",
},
},
} {