realm.py: renames methods to pep8

This commit is contained in:
Jed Reynolds
2020-06-09 09:59:38 -07:00
parent 2ebaa1d92c
commit d68e193d6e
2 changed files with 2 additions and 2 deletions

View File

@@ -66,7 +66,7 @@ class Realm(LFCliBase):
return sta_list
# removes port by eid/eidpn
def removeVlanByEid(self, eid):
def remove_vlan_by_eid(self, eid):
if (eid is None) or ("" == eid):
raise ValueError("removeVlanByEid wants eid like 1.1.sta0 but given[%s]" % eid)
hunks = eid.split('.')

View File

@@ -34,7 +34,7 @@ station_map = localrealm.find_ports_like("sta+")
for eid,record in station_map.items():
pprint(eid)
# a list of these objects is not super useful unless
localrealm.removeVlanByEid(eid)
localrealm.remove_vlan_by_eid(eid)
time.sleep(0.03)
# convert station map to plain list