Skip to content

Commit

Permalink
Avoid byte swap for vxlan port
Browse files Browse the repository at this point in the history
Signed-off-by: MQasimSarfraz <[email protected]>
  • Loading branch information
Qasim Sarfraz authored and MQasimSarfraz committed May 13, 2016
1 parent ba275e4 commit f712dca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/networking/tunnel_monitor/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def start(self):
with host[0].create(ifname="vxlan%d" % i, kind="vxlan",
vxlan_id=10000 + i,
vxlan_link=host[0].interfaces.eth0,
vxlan_port=htons(4789),
vxlan_port=4789,
vxlan_group="239.1.1.%d" % (1 + i)) as vx:
vx.up()
with host[0].create(ifname="br%d" % i, kind="bridge") as br:
Expand Down

0 comments on commit f712dca

Please sign in to comment.