mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 11:18:03 +00:00
realm: variables may have been referenced before assignment WARNING!!!!!!
Signed-off-by: matthew <stidmatt@gmail.com>
This commit is contained in:
@@ -826,39 +826,18 @@ class Realm(LFCliBase):
|
|||||||
link = self.lfclient_url + link
|
link = self.lfclient_url + link
|
||||||
info = ()
|
info = ()
|
||||||
|
|
||||||
def new_station_profile(self, ver=1):
|
def new_station_profile(self):
|
||||||
if ver == 1:
|
return StationProfile(self.lfclient_url, local_realm=self, debug_=self.debug, up=False)
|
||||||
station_prof = StationProfile(self.lfclient_url, local_realm=self, debug_=self.debug, up=False)
|
|
||||||
# elif ver == 2:
|
|
||||||
# import station_profile2
|
|
||||||
# station_prof = station_profile2.StationProfile2(self.lfclient_url, local_realm=self, debug_=self.debug, up=False)
|
|
||||||
return station_prof
|
|
||||||
|
|
||||||
def new_multicast_profile(self, ver=1):
|
def new_multicast_profile(self):
|
||||||
if ver == 1:
|
return MULTICASTProfile(self.lfclient_host, self.lfclient_port, local_realm=self, debug_=self.debug, report_timer_=3000)
|
||||||
multi_prof = MULTICASTProfile(self.lfclient_host, self.lfclient_port,
|
|
||||||
local_realm=self, debug_=self.debug, report_timer_=3000)
|
|
||||||
# elif ver == 2:
|
|
||||||
# import multicast_profile2
|
|
||||||
# multi_prof = multicast_profile2.MULTICASTProfile2(self.lfclient_host, self.lfclient_port,
|
|
||||||
# local_realm=self, debug_=self.debug, report_timer_=3000)
|
|
||||||
return multi_prof
|
|
||||||
|
|
||||||
def new_wifi_monitor_profile(self, resource_=1, debug_=False, up_=False, ver=1):
|
def new_wifi_monitor_profile(self, resource_=1, debug_=False, up_=False):
|
||||||
if ver == 1:
|
return WifiMonitor(self.lfclient_url,
|
||||||
wifi_mon_prof = WifiMonitor(self.lfclient_url,
|
|
||||||
local_realm=self,
|
local_realm=self,
|
||||||
resource_=resource_,
|
resource_=resource_,
|
||||||
up=up_,
|
up=up_,
|
||||||
debug_=(self.debug or debug_))
|
debug_=(self.debug or debug_))
|
||||||
# elif ver == 2:
|
|
||||||
# import wifi_monitor_profile2
|
|
||||||
# wifi_mon_prof = wifi_monitor_profile2.WifiMonitor2(self.lfclient_url,
|
|
||||||
# local_realm=self,
|
|
||||||
# resource_=resource_,
|
|
||||||
# up=up_,
|
|
||||||
# debug_=(self.debug or debug_))
|
|
||||||
return wifi_mon_prof
|
|
||||||
|
|
||||||
def new_l3_cx_profile(self):
|
def new_l3_cx_profile(self):
|
||||||
return L3CXProfile(self.lfclient_host,
|
return L3CXProfile(self.lfclient_host,
|
||||||
@@ -867,60 +846,25 @@ class Realm(LFCliBase):
|
|||||||
debug_=self.debug,
|
debug_=self.debug,
|
||||||
report_timer_=3000)
|
report_timer_=3000)
|
||||||
|
|
||||||
def new_l4_cx_profile(self, ver=1):
|
def new_l4_cx_profile(self):
|
||||||
if ver == 1:
|
return L4CXProfile(self.lfclient_host, self.lfclient_port, local_realm=self, debug_=self.debug)
|
||||||
cx_prof = L4CXProfile(self.lfclient_host, self.lfclient_port, local_realm=self, debug_=self.debug)
|
|
||||||
# elif ver == 2:
|
|
||||||
# import l4_cxprofile2
|
|
||||||
# cx_prof = l4_cxprofile2.L4CXProfile2(self.lfclient_host,
|
|
||||||
# self.lfclient_port,
|
|
||||||
# local_realm=self,
|
|
||||||
# debug_=self.debug,
|
|
||||||
# report_timer_=3000)
|
|
||||||
return cx_prof
|
|
||||||
|
|
||||||
def new_attenuator_profile(self, ver=1):
|
def new_attenuator_profile(self):
|
||||||
if ver == 1:
|
return ATTENUATORProfile(self.lfclient_host, self.lfclient_port, debug_=self.debug)
|
||||||
atten_prof = ATTENUATORProfile(self.lfclient_host, self.lfclient_port, debug_=self.debug)
|
|
||||||
return atten_prof
|
|
||||||
|
|
||||||
def new_generic_endp_profile(self, ver=1):
|
def new_generic_endp_profile(self):
|
||||||
if ver == 1:
|
return 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)
|
|
||||||
# elif ver == 2:
|
|
||||||
# import gen_cxprofile2
|
|
||||||
# endp_prof = gen_cxprofile2.GenCXProfile(self.lfclient_host,
|
|
||||||
# self.lfclient_port,
|
|
||||||
# local_realm=self,
|
|
||||||
# debug_=self.debug,
|
|
||||||
# report_timer_=3000)
|
|
||||||
return endp_prof
|
|
||||||
|
|
||||||
def new_generic_cx_profile(self, ver=1):
|
def new_generic_cx_profile(self):
|
||||||
"""
|
"""
|
||||||
@deprecated
|
@deprecated
|
||||||
:return: new GenCXProfile
|
:return: new GenCXProfile
|
||||||
"""
|
"""
|
||||||
if ver == 1:
|
return GenCXProfile(self.lfclient_host, self.lfclient_port, local_realm=self, debug_=self.debug)
|
||||||
cx_prof = GenCXProfile(self.lfclient_host, self.lfclient_port, local_realm=self, debug_=self.debug)
|
|
||||||
# elif ver == 2:
|
|
||||||
# import gen_cxprofile2
|
|
||||||
# cx_prof = gen_cxprofile2.GenCXProfile(self.lfclient_host,
|
|
||||||
# self.lfclient_port,
|
|
||||||
# local_realm=self,
|
|
||||||
# debug_=self.debug,
|
|
||||||
# report_timer_=3000)
|
|
||||||
return cx_prof
|
|
||||||
|
|
||||||
def new_vap_profile(self, ver=1):
|
def new_vap_profile(self):
|
||||||
if ver == 1:
|
return 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,
|
|
||||||
debug_=self.debug)
|
debug_=self.debug)
|
||||||
# elif ver == 2:
|
|
||||||
# import vap_profile2
|
|
||||||
# vap_prof = vap_profile2.VAPProfile2(lfclient_host=self.lfclient_host, lfclient_port=self.lfclient_port, local_realm=self,
|
|
||||||
# debug_=self.debug)
|
|
||||||
return vap_prof
|
|
||||||
|
|
||||||
# def new_vr_profile(self):
|
# def new_vr_profile(self):
|
||||||
# return VRProfile(local_realm=self,
|
# return VRProfile(local_realm=self,
|
||||||
|
|||||||
Reference in New Issue
Block a user