1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-24 17:28:08 +00:00

Fix an error with ethernetswitch when ethertype is null

Fix #1007
This commit is contained in:
Julien Duponchelle 2017-05-04 10:33:02 +02:00
parent 694a4e8068
commit 04220846b3
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -246,7 +246,7 @@ class EthernetSwitch(Device):
elif settings["type"] == "dot1q": elif settings["type"] == "dot1q":
yield from self.set_dot1q_port(port_number, settings["vlan"]) yield from self.set_dot1q_port(port_number, settings["vlan"])
elif settings["type"] == "qinq": elif settings["type"] == "qinq":
yield from self.set_qinq_port(port_number, settings["vlan"], settings["ethertype"]) yield from self.set_qinq_port(port_number, settings["vlan"], settings.get("ethertype"))
@asyncio.coroutine @asyncio.coroutine
def set_access_port(self, port_number, vlan_id): def set_access_port(self, port_number, vlan_id):