mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #447 from sanimej/libn-exp-local
Pass the vxlan port in network endian order
This commit is contained in:
commit
d0b979069f
1 changed files with 2 additions and 1 deletions
|
@ -6,6 +6,7 @@ import (
|
|||
"github.com/docker/libnetwork/netutils"
|
||||
"github.com/docker/libnetwork/types"
|
||||
"github.com/vishvananda/netlink"
|
||||
"github.com/vishvananda/netlink/nl"
|
||||
)
|
||||
|
||||
func validateID(nid, eid types.UUID) error {
|
||||
|
@ -54,7 +55,7 @@ func createVxlan(vni uint32) (string, error) {
|
|||
LinkAttrs: netlink.LinkAttrs{Name: name},
|
||||
VxlanId: int(vni),
|
||||
Learning: true,
|
||||
Port: vxlanPort,
|
||||
Port: int(nl.Swap16(vxlanPort)), //network endian order
|
||||
Proxy: true,
|
||||
L3miss: true,
|
||||
L2miss: true,
|
||||
|
|
Loading…
Add table
Reference in a new issue