From e790d487b1fed0a30e6c593c3e99e0e9734d8226 Mon Sep 17 00:00:00 2001 From: Matthew Stidham Date: Thu, 30 Sep 2021 14:03:33 -0700 Subject: [PATCH] Make it so VAP profile works with Realm again Signed-off-by: Matthew Stidham --- py-json/realm.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/py-json/realm.py b/py-json/realm.py index e19f01be..e7fd8290 100755 --- a/py-json/realm.py +++ b/py-json/realm.py @@ -60,7 +60,8 @@ port_utils = importlib.import_module("py-json.port_utils") PortUtils = port_utils.PortUtils lfdata = importlib.import_module("py-json.lfdata") LFDataCollection = lfdata.LFDataCollection - +vr_profile2 = importlib.import_module("py-json.vr_profile2") +VRProfile = vr_profile2.VRProfile def wpa_ent_list(): return [ @@ -932,12 +933,10 @@ class Realm(LFCliBase): # debug_=self.debug) return vap_prof - def new_vr_profile(self, ver=2): - if ver == 2: - from vr_profile2 import VRProfile - vap_prof = VRProfile(local_realm=self, - debug=self.debug) - return vap_prof + def new_vr_profile(self): + vr_prof = VRProfile(local_realm=self, + debug=self.debug) + return vr_prof def new_http_profile(self, ver = 1): if ver == 1: