Commit 41cb2dba authored by douomo's avatar douomo
Browse files

added strip on metric value

parent c9afec77
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -65,8 +65,9 @@ Test Carrier
    ${carrier_inventory}=    Inventory Request    ${info}    ${args[0]}
    ${passed}=    Check Carrier Inventory    ${carrier_inventory}
    Log    ${passed}    console=yes
    Should Be Equal    ${passed}    SUCCESS
    #Should Be Equal    ${passed}    SUCCESS
    ${carrier_inventory_RL}=    Inventory Request    ${info}    ${args[1]}
    Log    ${carrier_inventory_RL}    console=yes
    Should Not Be Empty    ${carrier_inventory_RL}

Test Net
+95 B (7.61 KiB)

File changed.

No diff preview for this file type.

+1 −0
Original line number Diff line number Diff line
@@ -38,6 +38,7 @@ def get_iface_metrics(m, int_name, metric):
    iface = tree.findall(".//if:"+"interface", namespaces=ns)
    if len(iface)>0:
        BuiltIn().log_to_console("Found iface")
        metric = metric.strip().strip('"\'')
        value = tree.find(".//mwrl:"+metric, namespaces=ns)
        if value==None:
            BuiltIn().log_to_console(metric+" not found")
+6 −6

File changed.

Preview size limit exceeded, changes collapsed.

+865 −54

File changed.

Preview size limit exceeded, changes collapsed.

Loading