Ejemplo n.º 1
0
 def f4():
     #intf.clear_interface_counters(client2)
     ip.show_ip_route(client2)
     arp.show_arp(client2)
     arp.show_ndp(client2)
     evpn.show_ip_neigh(client2)
     bcm.bcmcmd_l3_defip_show(client2)
     bcm.bcmcmd_l3_l3table_show(client2)
     bcm.bcmcmd_l3_ip6host_show(client2)
     bcm.bcmcmd_l3_ip6route_show(client2)
     bcm.read_l2(client2)
     bcm.bcm_cmd_l3_intf_show(client2)
     bcm.bcmcmd_show(client2, "l3 egress show")
     intf.show_interfaces_counters(client2)
     mac.get_mac(client2)
     ip.show_ip_route(client2, family='ipv6')
Ejemplo n.º 2
0
 def f2():
     #intf.clear_interface_counters(leaf2)
     ip.show_ip_route(leaf2)
     arp.show_arp(leaf2)
     arp.show_ndp(leaf2)
     evpn.show_ip_neigh(leaf2)
     bcm.bcmcmd_l3_defip_show(leaf2)
     bcm.bcmcmd_l3_l3table_show(leaf2)
     bcm.bcmcmd_l3_ip6host_show(leaf2)
     bcm.bcmcmd_l3_ip6route_show(leaf2)
     bcm.read_l2(leaf2)
     bcm.bcm_cmd_l3_intf_show(leaf2)
     bcm.bcmcmd_show(leaf2, "l3 egress show")
     intf.show_interfaces_counters(leaf2)
     mac.get_mac(leaf2)
     ip.show_ip_route(leaf2, family='ipv6')
     mclag.verify_domain(leaf2, domain_id=data.po_domainid)
     mclag.verify_iccp_macs(leaf2,
                            domain_id=data.po_domainid,
                            return_type='NULL')
     mclag.show_iccp_arp(leaf2, domain_id=data.po_domainid)
     mclag.show_iccp_nd(leaf2, domain_id=data.po_domainid)
Ejemplo n.º 3
0
def eh_bcm_debug_show(dut, af='both', table_type='all', ifname_type=None):
    """
    Error handling debug API
    Author : Prudvi Mangadu ([email protected])
    :param dut:
    :param af:
    :param table_type:
    :return:
    """
    st.banner("Error handling DEBUG Calls - START")
    if af == 'ipv4' or af == 'both':
        if table_type == 'route' or table_type == 'all':
            asicapi.bcmcmd_l3_defip_show(dut)
        if table_type == 'nbr' or table_type == 'all':
            asicapi.bcmcmd_l3_l3table_show(dut)
    if af == 'ipv6' or af == 'both':
        if table_type == 'route' or table_type == 'all':
            asicapi.bcmcmd_l3_ip6route_show(dut)
        if table_type == 'nbr' or table_type == 'all':
            asicapi.bcmcmd_l3_ip6host_show(dut)
    if table_type == 'all':
        verify_show_error_db(dut, ifname_type=ifname_type)
    st.banner("Error handling DEBUG Calls - END")