mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 03:07:56 +00:00
renames create_genlink to generic_cx
This commit is contained in:
@@ -9,7 +9,7 @@ if 'py-json' not in sys.path:
|
|||||||
from LANforge import LFUtils
|
from LANforge import LFUtils
|
||||||
from LANforge.LFUtils import *
|
from LANforge.LFUtils import *
|
||||||
from LANforge.lfcli_base import LFCliBase
|
from LANforge.lfcli_base import LFCliBase
|
||||||
from create_genlink import CreateGenlink
|
from generic_cx import GenericCx
|
||||||
|
|
||||||
mgrURL = "http://localhost:8080/"
|
mgrURL = "http://localhost:8080/"
|
||||||
staName = "sta0"
|
staName = "sta0"
|
||||||
@@ -165,7 +165,7 @@ class ConnectTest(LFCliBase):
|
|||||||
time.sleep(.05)
|
time.sleep(.05)
|
||||||
|
|
||||||
# create generic endpoints
|
# create generic endpoints
|
||||||
genl = CreateGenlink(lfclient_host=self.lfjson_host, lfclient_port=self.lfjson_port)
|
genl = GenericCx(lfclient_host=self.lfjson_host, lfclient_port=self.lfjson_port)
|
||||||
genl.createGenEndp("genTest1", 1, 1, staName, "gen_generic")
|
genl.createGenEndp("genTest1", 1, 1, staName, "gen_generic")
|
||||||
genl.createGenEndp("genTest2", 1, 1, staName, "gen_generic")
|
genl.createGenEndp("genTest2", 1, 1, staName, "gen_generic")
|
||||||
genl.setFlags("genTest1", "ClearPortOnStart", 1)
|
genl.setFlags("genTest1", "ClearPortOnStart", 1)
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ if sys.version_info[0] != 3:
|
|||||||
|
|
||||||
from LANforge.lfcli_base import LFCliBase
|
from LANforge.lfcli_base import LFCliBase
|
||||||
|
|
||||||
class CreateGenlink(LFCliBase):
|
class GenericCx(LFCliBase):
|
||||||
def __init__(self, lfclient_host, lfclient_port):
|
def __init__(self, lfclient_host, lfclient_port):
|
||||||
super().__init__(lfclient_host, lfclient_port)
|
super().__init__(lfclient_host, lfclient_port)
|
||||||
self.lfclient_host = lfclient_host
|
self.lfclient_host = lfclient_host
|
||||||
Reference in New Issue
Block a user