Added upstream_resource

Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
This commit is contained in:
jitendracandela
2022-05-29 20:56:27 +05:30
parent 936615413f
commit 1d628beb94

View File

@@ -51,6 +51,7 @@ class IPVariableTime(Realm):
use_existing_sta=False, use_existing_sta=False,
name_prefix=None, name_prefix=None,
upstream=None, upstream=None,
upstream_resource=1,
radio=None, radio=None,
host="localhost", host="localhost",
port=8080, port=8080,
@@ -100,6 +101,7 @@ class IPVariableTime(Realm):
self.number_template = number_template self.number_template = number_template
self.debug = _debug_on self.debug = _debug_on
self.timeout_sec = 60 self.timeout_sec = 60
self.upstream_resource = upstream_resource
# self.json_post("/cli-json/set_resource", { # self.json_post("/cli-json/set_resource", {
# "shelf":1, # "shelf":1,
# "resource":all, # "resource":all,
@@ -205,9 +207,8 @@ class IPVariableTime(Realm):
print("Creating stations") print("Creating stations")
self.station_profile.create(radio=self.radio, sta_names_=self.sta_list, debug=self.debug) self.station_profile.create(radio=self.radio, sta_names_=self.sta_list, debug=self.debug)
self._pass("PASS: Station build finished") self._pass("PASS: Station build finished")
self.cx_profile.create(endp_type=self.traffic_type, side_a=self.sta_list, self.cx_profile.create(endp_type=self.traffic_type, side_a=self.sta_list,
side_b=self.upstream, side_b="%d.%s" % (int(self.upstream_resource), self.upstream),
sleep_time=0) sleep_time=0)
def run(self): def run(self):