mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-10-29 18:02:35 +00:00
realm.py: renames methods to pep8
This commit is contained in:
@@ -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('.')
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user