Loading AlarmTest.robot +2 −2 Original line number Diff line number Diff line Loading @@ -43,7 +43,7 @@ Mute ODU and Receive SNR Alarms ${m}= Connect With Key ${par["host"]} ${par["port"]} ${par["username"]} ${par["key_filename"]} #${m}= Connect With Credentials ${par["host"]} ${par["port"]} ${par["username"]} ${par["password"]} Unmute ODU ${m} "name" #Interface name to mute #On transimitter node: need to connect to the TX and change ${m} with the reference to the transmitter Set RSL Thrashold ${m} ${par["testInterface"]} 20 Set RSL Threshold ${m} ${par["testInterface"]} 20 ${resp}= Evaluate ${m}.create_subscription() Mute ODU ${m} "name" ${notif}= Evaluate next(${m}.take_notification(timeout=60)) Loading @@ -56,7 +56,7 @@ Mute ODU and Receive RSL Alarms ${m}= Connect With Key ${par["host"]} ${par["port"]} ${par["username"]} ${par["key_filename"]} #${m}= Connect With Credentials ${par["host"]} ${par["port"]} ${par["username"]} ${par["password"]} Unmute ODU ${m} "name" Set RSL Thrashold ${m} ${par["testInterface"]} 20 Set RSL Threshold ${m} ${par["testInterface"]} 20 ${resp}= Evaluate ${m}.create_subscription() Mute ODU ${m} "name" ${notif}= Evaluate next(${m}.take_notification(timeout=60)) Loading __pycache__/ne-cfg.cpython-312.pyc −163 B (444 B) File changed.No diff preview for this file type. View original file View changed file __pycache__/validateInventory.cpython-312.pyc +135 B (14.9 KiB) File changed.No diff preview for this file type. View original file View changed file ne-cfg.py +1 −2 Original line number Diff line number Diff line vendor_1= {"host": "192.168.13.134", "port": 830, "username": "domenico", "password":"MySecurePassword", "key_filename":"/home/douomo/.ssh/netconf_key", "testInterface":"ens0","minTxPower":0.0,"maxTxPower":99.0, "transmitterIP":"192.168.13.134"} vendor_2= {"host": "192.168.13.134", "port": 100, "username": "admin", "password":"MySecurePassword","hostkey_verify":"False", "key_filename":"/home/douomo/.ssh/netconf_key", "look_for_keys":"False","testInterface":"ens0","testTxPower":0} vendor_1= {"host": "192.168.13.134", "port": 830, "username": "domenico", "password":"MySecurePassword", "key_filename":"/home/douomo/.ssh/netconf_key", "testInterface":"ens0","minTxPower":0.0,"maxTxPower":99.0, "transmitterIP":"192.168.13.134", "ODUName":"name"} validateInventory.py +8 −3 Original line number Diff line number Diff line Loading @@ -115,8 +115,13 @@ def check_carrier_inventory(xml_reply): #selected_min_acm = tree.findall(".//ns1:selected_min_acm", namespaces={"ns1": "urn:ietf:params:xml:ns:yang:ietf-microwave-radio-link"}) capabilites = iface.findall(".//ns1:capabilities", namespaces={"ns1": "urn:ietf:params:xml:ns:yang:ietf-microwave-radio-link"}) if len(capabilites)>0: av_max_acm = capabilites[0].findall(".//ns0:available-max-acm", namespaces={"ns0" : "urn:ietf:params:xml:ns:yang:ietf-microwave-radio-link"}) av_min_acm = capabilites[0].findall(".//ns0:available-min-acm", namespaces={"ns0" : "urn:ietf:params:xml:ns:yang:ietf-microwave-radio-link"}) if len(av_max_acm)==0 or len(av_min_acm)==0: return "No av_max_acm or av_min_acm found" else: return "No av_max_acm or av_min_acm found" actual_tx_level = iface.findall(".//ns1:actual-transmitted-level", namespaces={"ns1": "urn:ietf:params:xml:ns:yang:ietf-microwave-radio-link"}) actual_rx_level = iface.findall(".//ns1:actual-received-level", namespaces={"ns1": "urn:ietf:params:xml:ns:yang:ietf-microwave-radio-link"}) Loading Loading
AlarmTest.robot +2 −2 Original line number Diff line number Diff line Loading @@ -43,7 +43,7 @@ Mute ODU and Receive SNR Alarms ${m}= Connect With Key ${par["host"]} ${par["port"]} ${par["username"]} ${par["key_filename"]} #${m}= Connect With Credentials ${par["host"]} ${par["port"]} ${par["username"]} ${par["password"]} Unmute ODU ${m} "name" #Interface name to mute #On transimitter node: need to connect to the TX and change ${m} with the reference to the transmitter Set RSL Thrashold ${m} ${par["testInterface"]} 20 Set RSL Threshold ${m} ${par["testInterface"]} 20 ${resp}= Evaluate ${m}.create_subscription() Mute ODU ${m} "name" ${notif}= Evaluate next(${m}.take_notification(timeout=60)) Loading @@ -56,7 +56,7 @@ Mute ODU and Receive RSL Alarms ${m}= Connect With Key ${par["host"]} ${par["port"]} ${par["username"]} ${par["key_filename"]} #${m}= Connect With Credentials ${par["host"]} ${par["port"]} ${par["username"]} ${par["password"]} Unmute ODU ${m} "name" Set RSL Thrashold ${m} ${par["testInterface"]} 20 Set RSL Threshold ${m} ${par["testInterface"]} 20 ${resp}= Evaluate ${m}.create_subscription() Mute ODU ${m} "name" ${notif}= Evaluate next(${m}.take_notification(timeout=60)) Loading
__pycache__/ne-cfg.cpython-312.pyc −163 B (444 B) File changed.No diff preview for this file type. View original file View changed file
__pycache__/validateInventory.cpython-312.pyc +135 B (14.9 KiB) File changed.No diff preview for this file type. View original file View changed file
ne-cfg.py +1 −2 Original line number Diff line number Diff line vendor_1= {"host": "192.168.13.134", "port": 830, "username": "domenico", "password":"MySecurePassword", "key_filename":"/home/douomo/.ssh/netconf_key", "testInterface":"ens0","minTxPower":0.0,"maxTxPower":99.0, "transmitterIP":"192.168.13.134"} vendor_2= {"host": "192.168.13.134", "port": 100, "username": "admin", "password":"MySecurePassword","hostkey_verify":"False", "key_filename":"/home/douomo/.ssh/netconf_key", "look_for_keys":"False","testInterface":"ens0","testTxPower":0} vendor_1= {"host": "192.168.13.134", "port": 830, "username": "domenico", "password":"MySecurePassword", "key_filename":"/home/douomo/.ssh/netconf_key", "testInterface":"ens0","minTxPower":0.0,"maxTxPower":99.0, "transmitterIP":"192.168.13.134", "ODUName":"name"}
validateInventory.py +8 −3 Original line number Diff line number Diff line Loading @@ -115,8 +115,13 @@ def check_carrier_inventory(xml_reply): #selected_min_acm = tree.findall(".//ns1:selected_min_acm", namespaces={"ns1": "urn:ietf:params:xml:ns:yang:ietf-microwave-radio-link"}) capabilites = iface.findall(".//ns1:capabilities", namespaces={"ns1": "urn:ietf:params:xml:ns:yang:ietf-microwave-radio-link"}) if len(capabilites)>0: av_max_acm = capabilites[0].findall(".//ns0:available-max-acm", namespaces={"ns0" : "urn:ietf:params:xml:ns:yang:ietf-microwave-radio-link"}) av_min_acm = capabilites[0].findall(".//ns0:available-min-acm", namespaces={"ns0" : "urn:ietf:params:xml:ns:yang:ietf-microwave-radio-link"}) if len(av_max_acm)==0 or len(av_min_acm)==0: return "No av_max_acm or av_min_acm found" else: return "No av_max_acm or av_min_acm found" actual_tx_level = iface.findall(".//ns1:actual-transmitted-level", namespaces={"ns1": "urn:ietf:params:xml:ns:yang:ietf-microwave-radio-link"}) actual_rx_level = iface.findall(".//ns1:actual-received-level", namespaces={"ns1": "urn:ietf:params:xml:ns:yang:ietf-microwave-radio-link"}) Loading