Revert "Revert "modify_vap.py : removed import of LFUtils , as vap_modify inherits from Realm""

This reverts commit 54f6009f7afebc3715456ab5069f58f97a27f534.
This commit is contained in:
Chuck SmileyRekiere
2022-06-08 11:04:15 -06:00
committed by shivam
parent 3d7a20ed0c
commit 1c4461b6bf

View File

@@ -19,7 +19,6 @@ sys.path.append(os.path.join(os.path.abspath(__file__ + "../../../")))
lfcli_base = importlib.import_module("py-json.LANforge.lfcli_base")
LFCliBase = lfcli_base.LFCliBase
LFUtils = importlib.import_module("py-json.LANforge.LFUtils")
realm = importlib.import_module("py-json.realm")
Realm = realm.Realm
lf_logger_config = importlib.import_module("py-scripts.lf_logger_config")
@@ -63,7 +62,7 @@ class ModifyVAP(Realm):
self.debug = _debug_on
self.dhcp = _dhcp
self.vap_profile = self.new_vap_profile()
shelf, resource, port, *nil = LFUtils.name_to_eid(self.vap_list)
shelf, resource, port, *nil = self.name_to_eid(eid=self.vap_list, debug=self.debug)
self.vap_profile.resource = resource
self.vap_profile.shelf = shelf
self.vap_profile.add_vap_data["resource"] = resource