Hi,
in the below script I need to add values of lpm and host and need to give single result if and only if dut_model matches to QFX5120. please anyone help me on this
Verify Routes in FIB
[Documentation] “Verifies the routes in the FIB”
Return From Keyword If ${vr_check1} and ${vr_check2}
#Check if routes are downloaded in PFE including the pre-scaling routes
Print Test Step And Message VERIFY THAT ${total_routes_to_check} ${protocol} ROUTES ARE POPULATED IN FIB
#For all testcases which need IPv4 lpm routes
${pfe_status} = Run keyword If '${protocol}' == 'BGP' and '${route_type}' == 'lpm' Verify Ipv4 Fib Routes device=${dut} type=iter route_type=lpm count=${total_routes_to_check}
#For all testcases which need IPv4 host routes
... ELSE IF '${protocol}' == 'BGP' and '${route_type}' == 'host' Verify Ipv4 Fib Routes device=${dut} type=iter route_type=host count=${total_routes_to_check}
#For all testcases which need IPv6 lpm routes
... ELSE IF '${protocol}' == 'BGPv6' and '${route_type}' == 'lpm' Verify Ipv6 Fib Routes device=${dut} type=iter route_type=lpm count=${total_routes_to_check}
#For all other testcases
... ELSE Verify Ipv6 Fib Routes device=${dut} type=iter route_type=host count=${total_routes_to_check}
#Verify the status
Run Keyword If '${pfe_status}'!='True' Run Keywords
... Log Error *** PFE IS NOT UPDATED WITH ${total_routes_to_check} ROUTES ***
... AND Debug Control Plane Failure
... ELSE Log Info ${\n}**** SUCCESS: ${total_routes_to_check} NUMBER OF ROUTES HAVE COME UP SUCCESSFULLY IN PFE **** ${\n}
#Verify FIB routes on Helper
Run Keyword If "BFD" in """${testcase_name}""" Run Keywords
... Log Info Verifying routes are updated in FIB of Helper..
... AND Verify Routes in FIB Of Helper