Beispiel #1
0
 def test_16_get_OTS_DEG2_TTP_TXRX_ROADMC(self):
     response = test_utils_rfc8040.check_node_attribute2_request(
         'ROADMC01', 'interface', 'OTS-DEG2-TTP-TXRX',
         'org-openroadm-optical-transport-interfaces:ots')
     self.assertEqual(response['status_code'], requests.codes.ok)
     self.assertEqual(
         float(response['org-openroadm-optical-transport-interfaces:ots']
               ['span-loss-transmit']), 15.1)
     self.assertEqual(
         float(response['org-openroadm-optical-transport-interfaces:ots']
               ['span-loss-receive']), 5.7)
Beispiel #2
0
 def test_34_get_interface_XPDRA_XPDR1_NETWORK2(self):
     response = test_utils_rfc8040.check_node_attribute2_request(
         'XPDRA01', 'interface', 'XPDR1-NETWORK2-753:760',
         'org-openroadm-optical-channel-interfaces:och')
     self.assertEqual(response['status_code'], requests.codes.ok)
     self.assertEqual(
         float(response['org-openroadm-optical-channel-interfaces:och']
               ['transmit-power']), -5)
     self.assertEqual(
         int(response['org-openroadm-optical-channel-interfaces:och']
             ['wavelength-number']), 2)
 def test_24_get_interface_XPDRC_XPDR1_NETWORK1(self):
     response = test_utils_rfc8040.check_node_attribute2_request(
         'XPDR-C1', 'interface', 'XPDR1-NETWORK1-761:768', 'org-openroadm-optical-channel-interfaces:och')
     self.assertEqual(response['status_code'], requests.codes.ok)
     self.assertEqual(float(response['org-openroadm-optical-channel-interfaces:och']['transmit-power']), -5)
     self.assertEqual(float(response['org-openroadm-optical-channel-interfaces:och']['frequency']), 196.1)