diff options
author | Steve McIntyre <steve.mcintyre@linaro.org> | 2014-12-05 15:29:04 +0000 |
---|---|---|
committer | Steve McIntyre <steve.mcintyre@linaro.org> | 2014-12-05 15:29:04 +0000 |
commit | 50eb0606bb54117bb922be53f724586228d1e0cc (patch) | |
tree | 28393da0dc9241a870dee98e12f0412b71709a29 /db | |
parent | a34c181c38e2df4a011dddefc31f5ebaf68e2425 (diff) |
s/get_vlan_id_from_tag/get_vlan_id_by_tag/
Change-Id: I0748e8317af3674e6f52652436d5393f93e8e8f4
Diffstat (limited to 'db')
-rw-r--r-- | db/db.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -111,7 +111,7 @@ class VlanDB: if vlan_id is not None: raise InputError("VLAN name %s is already in use" % name) - vlan_id = self.get_vlan_id_from_tag(tag) + vlan_id = self.get_vlan_id_by_tag(tag) if vlan_id is not None: raise InputError("VLAN tag %d is already in use" % int(tag)) @@ -273,7 +273,7 @@ class VlanDB: def get_vlan_id_by_name(self, name): return self._get_element("vlan_id", "vlan", "name", name) - def get_vlan_id_from_tag(self, tag): + def get_vlan_id_by_tag(self, tag): return self._get_element("vlan_id", "vlan", "tag", tag) def get_switch_name(self, switch_id): |