From d68e193d6eff2fafbb1f0c175262126b5a8974fd Mon Sep 17 00:00:00 2001 From: Jed Reynolds Date: Tue, 9 Jun 2020 09:59:38 -0700 Subject: [PATCH] realm.py: renames methods to pep8 --- py-json/realm.py | 2 +- py-json/realm_test.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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