realm.py: updates factory method new_vr_profile, defaults to ver=2, uses version numbered module

Signed-off-by: Jed Reynolds <jed@candelatech.com>
This commit is contained in:
Jed Reynolds
2021-03-04 21:45:08 -08:00
parent 9563d49c75
commit 01e9167bd8

View File

@@ -891,17 +891,11 @@ class Realm(LFCliBase):
# debug_=self.debug)
return vap_prof
def new_vr_profile(self, ver = 1):
if ver == 1:
import vr_profile
from vr_profile import VRProfile
vap_prof = vr_profile.VRProfile(local_realm=self,
def new_vr_profile(self, ver=2):
if ver == 2:
from vr_profile2 import VRProfile
vap_prof = VRProfile(local_realm=self,
debug=self.debug)
# elif ver == 2:
# import vr_profile2
# from vr_profile2 import VRProfile2
# vap_prof = vr_profile2.VRProfile2(local_realm=self,
# debug=self.debug)
return vap_prof
def new_http_profile(self, ver = 1):