mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-13 20:08:55 +00:00
Make the Ethernet side the source in uBridge connection and UDP tunnel the destination. Ref #771.
This commit is contained in:
parent
a853e87fa5
commit
31c04cc95b
@ -180,10 +180,6 @@ class Cloud(BaseNode):
|
||||
yield from self._ubridge_send("bridge create {name}".format(name=bridge_name))
|
||||
if not isinstance(nio, NIOUDP):
|
||||
raise NodeError("Source NIO is not UDP")
|
||||
yield from self._ubridge_send('bridge add_nio_udp {name} {lport} {rhost} {rport}'.format(name=bridge_name,
|
||||
lport=nio.lport,
|
||||
rhost=nio.rhost,
|
||||
rport=nio.rport))
|
||||
|
||||
if port_info["type"] in ("ethernet", "tap"):
|
||||
|
||||
@ -213,6 +209,11 @@ class Cloud(BaseNode):
|
||||
rhost=port_info["rhost"],
|
||||
rport=port_info["rport"]))
|
||||
|
||||
yield from self._ubridge_send('bridge add_nio_udp {name} {lport} {rhost} {rport}'.format(name=bridge_name,
|
||||
lport=nio.lport,
|
||||
rhost=nio.rhost,
|
||||
rport=nio.rport))
|
||||
|
||||
if nio.capturing:
|
||||
yield from self._ubridge_send('bridge start_capture {name} "{pcap_file}"'.format(name=bridge_name,
|
||||
pcap_file=nio.pcap_output_file))
|
||||
|
Loading…
Reference in New Issue
Block a user