mirror of
https://github.com/luscis/openlan.git
synced 2025-10-04 08:16:29 +08:00
fea: switch: support key options for gretap
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
},
|
||||
{
|
||||
"vlan": 0,
|
||||
"interface": "gre:3.3.3.3"
|
||||
"interface": "gre:3.3.3.3:55"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@@ -159,7 +159,10 @@ func (w *WorkerImpl) AddOutput(bridge string, port *LinuxPort) {
|
||||
if port.link == "" {
|
||||
port.link = co.GenName("gre")
|
||||
}
|
||||
key, _ := strconv.Atoi(values[2])
|
||||
link := &netlink.Gretap{
|
||||
IKey: uint32(key),
|
||||
OKey: uint32(key),
|
||||
LinkAttrs: netlink.LinkAttrs{
|
||||
Name: port.link,
|
||||
MTU: 1460,
|
||||
|
Reference in New Issue
Block a user