mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 19:28:00 +00:00
realm.py: renames methods to pep8
This commit is contained in:
@@ -66,7 +66,7 @@ class Realm(LFCliBase):
|
|||||||
return sta_list
|
return sta_list
|
||||||
|
|
||||||
# removes port by eid/eidpn
|
# removes port by eid/eidpn
|
||||||
def removeVlanByEid(self, eid):
|
def remove_vlan_by_eid(self, eid):
|
||||||
if (eid is None) or ("" == eid):
|
if (eid is None) or ("" == eid):
|
||||||
raise ValueError("removeVlanByEid wants eid like 1.1.sta0 but given[%s]" % eid)
|
raise ValueError("removeVlanByEid wants eid like 1.1.sta0 but given[%s]" % eid)
|
||||||
hunks = eid.split('.')
|
hunks = eid.split('.')
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ station_map = localrealm.find_ports_like("sta+")
|
|||||||
for eid,record in station_map.items():
|
for eid,record in station_map.items():
|
||||||
pprint(eid)
|
pprint(eid)
|
||||||
# a list of these objects is not super useful unless
|
# a list of these objects is not super useful unless
|
||||||
localrealm.removeVlanByEid(eid)
|
localrealm.remove_vlan_by_eid(eid)
|
||||||
time.sleep(0.03)
|
time.sleep(0.03)
|
||||||
|
|
||||||
# convert station map to plain list
|
# convert station map to plain list
|
||||||
|
|||||||
Reference in New Issue
Block a user