mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-03 04:07:52 +00:00
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:
@@ -850,7 +850,7 @@ class Realm(LFCliBase):
|
|||||||
# report_timer_=3000)
|
# report_timer_=3000)
|
||||||
return cx_prof
|
return cx_prof
|
||||||
|
|
||||||
def new_generic_endp_profile(self, ver = 1):
|
def new_generic_endp_profile(self, ver=1):
|
||||||
if ver == 1 :
|
if ver == 1 :
|
||||||
#import gen_cxprofile
|
#import gen_cxprofile
|
||||||
endp_prof = GenCXProfile(self.lfclient_host, self.lfclient_port, local_realm=self, debug_=self.debug)
|
endp_prof = GenCXProfile(self.lfclient_host, self.lfclient_port, local_realm=self, debug_=self.debug)
|
||||||
@@ -863,7 +863,7 @@ class Realm(LFCliBase):
|
|||||||
# report_timer_=3000)
|
# report_timer_=3000)
|
||||||
return endp_prof
|
return endp_prof
|
||||||
|
|
||||||
def new_generic_cx_profile(self, ver = 1):
|
def new_generic_cx_profile(self, ver=1):
|
||||||
"""
|
"""
|
||||||
@deprecated
|
@deprecated
|
||||||
:return: new GenCXProfile
|
:return: new GenCXProfile
|
||||||
@@ -880,7 +880,7 @@ class Realm(LFCliBase):
|
|||||||
# report_timer_=3000)
|
# report_timer_=3000)
|
||||||
return cx_prof
|
return cx_prof
|
||||||
|
|
||||||
def new_vap_profile(self, ver = 1):
|
def new_vap_profile(self, ver=1):
|
||||||
if ver == 1:
|
if ver == 1:
|
||||||
#import vap_profile
|
#import vap_profile
|
||||||
vap_prof = VAPProfile(lfclient_host=self.lfclient_host, lfclient_port=self.lfclient_port, local_realm=self,
|
vap_prof = VAPProfile(lfclient_host=self.lfclient_host, lfclient_port=self.lfclient_port, local_realm=self,
|
||||||
@@ -891,17 +891,11 @@ class Realm(LFCliBase):
|
|||||||
# debug_=self.debug)
|
# debug_=self.debug)
|
||||||
return vap_prof
|
return vap_prof
|
||||||
|
|
||||||
def new_vr_profile(self, ver = 1):
|
def new_vr_profile(self, ver=2):
|
||||||
if ver == 1:
|
if ver == 2:
|
||||||
import vr_profile
|
from vr_profile2 import VRProfile
|
||||||
from vr_profile import VRProfile
|
vap_prof = VRProfile(local_realm=self,
|
||||||
vap_prof = vr_profile.VRProfile(local_realm=self,
|
|
||||||
debug=self.debug)
|
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
|
return vap_prof
|
||||||
|
|
||||||
def new_http_profile(self, ver = 1):
|
def new_http_profile(self, ver = 1):
|
||||||
|
|||||||
Reference in New Issue
Block a user