Commit 476620db authored by douomo's avatar douomo
Browse files

fixed carrier check and typos

parent 833a5b9a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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))
@@ -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))
−163 B (444 B)

File changed.

No diff preview for this file type.

+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"}
+8 −3
Original line number Diff line number Diff line
@@ -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"})