ipvlan: Support ipvlan l3s mode.

This landed in kernel in 4fbae7d
This commit is contained in:
Lincoln Stoll 2016-11-05 13:22:51 -07:00
parent 2ad1d04561
commit 9201f3f1d9
No known key found for this signature in database
GPG Key ID: 4925A098484A1C0A

View File

@ -60,6 +60,8 @@ func modeFromString(s string) (netlink.IPVlanMode, error) {
return netlink.IPVLAN_MODE_L2, nil return netlink.IPVLAN_MODE_L2, nil
case "l3": case "l3":
return netlink.IPVLAN_MODE_L3, nil return netlink.IPVLAN_MODE_L3, nil
case "l3s":
return netlink.IPVLAN_MODE_L3S, nil
default: default:
return 0, fmt.Errorf("unknown ipvlan mode: %q", s) return 0, fmt.Errorf("unknown ipvlan mode: %q", s)
} }