Commit 1e56d939 authored by douomo's avatar douomo
Browse files

In case of fail the invTest return the number of parameters found and...

In case of fail the invTest return the number of parameters found and expected. Fixed xml to mute/unmute ODU and for RSL TH. Added check on alarm filters and inventory
parent 4599cd8e
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -44,7 +44,7 @@ Mute ODU and Query Alarms
    ${alarms}=    Get Filtered Config    ${m}    filters/alarms-list.xml
    ${alarms}=    Get Filtered Config    ${m}    filters/alarms-list.xml
    Log    ${alarms}    console=yes
    Log    ${alarms}    console=yes
    ${SNR}=    Get Iface Metrics    ${m}    ${par["testInterface"]}    "actual-snir"
    ${SNR}=    Get Iface Metrics    ${m}    ${par["testInterface"]}    "actual-snir"
    Should Be Equal    ${SNR}    0
    Should Be True    ${SNR} <= 10.0
    Close Current Session    ${m}
    Close Current Session    ${m}
    Close Current Session    ${t}
    Close Current Session    ${t}


+225 B (7.89 KiB)

File changed.

No diff preview for this file type.

+3 −0
Original line number Original line Diff line number Diff line
@@ -87,6 +87,7 @@ def set_SNR_threshold(m,int_name, t):
    env = Environment( loader=FileSystemLoader("."), autoescape=False)
    env = Environment( loader=FileSystemLoader("."), autoescape=False)
    context = {
    context = {
        "value" : t,
        "value" : t,
        "name" : int_name
    }
    }
    xml = env.get_template("configFile/setSNRThreshold.xml.pyformat").render(context)
    xml = env.get_template("configFile/setSNRThreshold.xml.pyformat").render(context)
    BuiltIn().log_to_console("New config for SNR Threshold:")
    BuiltIn().log_to_console("New config for SNR Threshold:")
@@ -98,12 +99,14 @@ def set_RSL_threshold(m,int_name, t):
    env = Environment( loader=FileSystemLoader("."), autoescape=False)
    env = Environment( loader=FileSystemLoader("."), autoescape=False)
    context = {
    context = {
        "value" : t,
        "value" : t,
        "name" : int_name
    }
    }
    xml = env.get_template("configFile/setRSLThreshold.xml.pyformat").render(context)
    xml = env.get_template("configFile/setRSLThreshold.xml.pyformat").render(context)
    BuiltIn().log_to_console("New config for RSL threshold:")
    BuiltIn().log_to_console("New config for RSL threshold:")
    BuiltIn().log_to_console(xml)
    BuiltIn().log_to_console(xml)
    m.edit_config(target="candidate", config=xml)
    m.edit_config(target="candidate", config=xml)
    m.commit()
    m.commit()
    BuiltIn().log_to_console("New threshold committed")


def mute_ODU(m, name):
def mute_ODU(m, name):
    env = Environment( loader=FileSystemLoader("."), autoescape=False)
    env = Environment( loader=FileSystemLoader("."), autoescape=False)
+1 −0
Original line number Original line Diff line number Diff line
<nc:config xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0">
<nc:config xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0">
  <interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces">
  <interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces">
    <interface>
    <interface>
        <name>{{ name }}</name>
        <ct-performance-thresholds xmlns="urn:ietf:params:xml:ns:yang:ietf-microwave-radio-link">
        <ct-performance-thresholds xmlns="urn:ietf:params:xml:ns:yang:ietf-microwave-radio-link">
          <received-level-alarm-threshold>{{ value }}</received-level-alarm-threshold>
          <received-level-alarm-threshold>{{ value }}</received-level-alarm-threshold>
        </ct-performance-thresholds>
        </ct-performance-thresholds>
Loading