Merge pull request #447 from sanimej/libn-exp-local

Pass the vxlan port in network endian order
This commit is contained in:
aboch 2015-08-07 17:36:33 -07:00
commit d0b979069f
1 changed files with 2 additions and 1 deletions

View File

@ -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,