diff --git a/py-json/realm.py b/py-json/realm.py index 2aec0867..b5cab74e 100755 --- a/py-json/realm.py +++ b/py-json/realm.py @@ -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('.') diff --git a/py-json/realm_test.py b/py-json/realm_test.py index ea066bd6..dd1b6573 100755 --- a/py-json/realm_test.py +++ b/py-json/realm_test.py @@ -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