Fix an error with ethernetswitch when ethertype is null

Fix #1007
pull/1027/head
Julien Duponchelle 7 years ago
parent 694a4e8068
commit 04220846b3
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

@ -246,7 +246,7 @@ class EthernetSwitch(Device):
elif settings["type"] == "dot1q":
yield from self.set_dot1q_port(port_number, settings["vlan"])
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
def set_access_port(self, port_number, vlan_id):

Loading…
Cancel
Save