@classmethod
def __start_honeynode1(cls):
executable = ("./honeynode/honeynode-distribution/target/honeynode-distribution-1.18.01-hc"
@classmethod
def __start_honeynode1(cls):
executable = ("./honeynode/honeynode-distribution/target/honeynode-distribution-1.18.01-hc"
if os.path.isfile(executable):
with open('honeynode1.log', 'w') as outfile:
cls.honeynode_process1 = subprocess.Popen(
if os.path.isfile(executable):
with open('honeynode1.log', 'w') as outfile:
cls.honeynode_process1 = subprocess.Popen(
- [executable, "17830", "sample_configs/ord_2.1/oper-ROADMA-full.xml"],
+ [executable, "17840", "sample_configs/openroadm/2.1/oper-ROADMA-full.xml"],
if os.path.isfile(executable):
with open('honeynode2.log', 'w') as outfile:
cls.honeynode_process2 = subprocess.Popen(
if os.path.isfile(executable):
with open('honeynode2.log', 'w') as outfile:
cls.honeynode_process2 = subprocess.Popen(
- [executable, "17831", "sample_configs/ord_2.1/oper-XPDRA.xml"],
+ [executable, "17831", "sample_configs/openroadm/2.1/oper-XPDRA.xml"],
if os.path.isfile(executable):
with open('honeynode3.log', 'w') as outfile:
cls.honeynode_process3 = subprocess.Popen(
if os.path.isfile(executable):
with open('honeynode3.log', 'w') as outfile:
cls.honeynode_process3 = subprocess.Popen(
- [executable, "17833", "sample_configs/ord_2.1/oper-ROADMC-full.xml"],
+ [executable, "17843", "sample_configs/openroadm/2.1/oper-ROADMC-full.xml"],
if os.path.isfile(executable):
with open('honeynode4.log', 'w') as outfile:
cls.honeynode_process4 = subprocess.Popen(
if os.path.isfile(executable):
with open('honeynode4.log', 'w') as outfile:
cls.honeynode_process4 = subprocess.Popen(
- [executable, "17834", "sample_configs/ord_2.1/oper-XPDRC.xml"],
+ [executable, "17834", "sample_configs/openroadm/2.1/oper-XPDRC.xml"],
def setUp(self): # instruction executed before each test method
print ("execution of {}".format(self.id().split(".")[-1]))
def setUp(self): # instruction executed before each test method
print ("execution of {}".format(self.id().split(".")[-1]))
# connect netconf devices
def test_01_connect_xpdrA(self):
url = ("{}/config/network-topology:"
# connect netconf devices
def test_01_connect_xpdrA(self):
url = ("{}/config/network-topology:"
"netconf-node-topology:username": "admin",
"netconf-node-topology:password": "admin",
"netconf-node-topology:host": "127.0.0.1",
"netconf-node-topology:username": "admin",
"netconf-node-topology:password": "admin",
"netconf-node-topology:host": "127.0.0.1",
"netconf-node-topology:tcp-only": "false",
"netconf-node-topology:pass-through": {}}]}
headers = {'content-type': 'application/json'}
"netconf-node-topology:tcp-only": "false",
"netconf-node-topology:pass-through": {}}]}
headers = {'content-type': 'application/json'}
"netconf-node-topology:username": "admin",
"netconf-node-topology:password": "admin",
"netconf-node-topology:host": "127.0.0.1",
"netconf-node-topology:username": "admin",
"netconf-node-topology:password": "admin",
"netconf-node-topology:host": "127.0.0.1",
"netconf-node-topology:tcp-only": "false",
"netconf-node-topology:pass-through": {}}]}
headers = {'content-type': 'application/json'}
"netconf-node-topology:tcp-only": "false",
"netconf-node-topology:pass-through": {}}]}
headers = {'content-type': 'application/json'}
.format(self.restconf_baseurl))
response = requests.request(
"GET", url1, auth=('admin', 'admin'))
.format(self.restconf_baseurl))
response = requests.request(
"GET", url1, auth=('admin', 'admin'))
.format(self.restconf_baseurl))
response = requests.request(
"GET", url1, auth=('admin', 'admin'))
.format(self.restconf_baseurl))
response = requests.request(
"GET", url1, auth=('admin', 'admin'))
.format(self.restconf_baseurl))
response = requests.request(
"GET", url1, auth=('admin', 'admin'))
.format(self.restconf_baseurl))
response = requests.request(
"GET", url1, auth=('admin', 'admin'))
.format(self.restconf_baseurl))
response = requests.request(
"GET", url1, auth=('admin', 'admin'))
.format(self.restconf_baseurl))
response = requests.request(
"GET", url1, auth=('admin', 'admin'))
.format(self.restconf_baseurl))
response = requests.request(
"GET", url1, auth=('admin', 'admin'))
.format(self.restconf_baseurl))
response = requests.request(
"GET", url1, auth=('admin', 'admin'))
.format(self.restconf_baseurl))
response = requests.request(
"GET", url1, auth=('admin', 'admin'))
.format(self.restconf_baseurl))
response = requests.request(
"GET", url1, auth=('admin', 'admin'))
.format(self.restconf_baseurl))
response = requests.request(
"GET", url1, auth=('admin', 'admin'))
.format(self.restconf_baseurl))
response = requests.request(
"GET", url1, auth=('admin', 'admin'))
.format(self.restconf_baseurl))
response = requests.request(
"GET", url1, auth=('admin', 'admin'))
.format(self.restconf_baseurl))
response = requests.request(
"GET", url1, auth=('admin', 'admin'))
.format(self.restconf_baseurl))
response = requests.request(
"GET", url1, auth=('admin', 'admin'))
.format(self.restconf_baseurl))
response = requests.request(
"GET", url1, auth=('admin', 'admin'))