Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 755 Bytes

asic_instance_from_namespace.md

File metadata and controls

30 lines (22 loc) · 755 Bytes

asic_instance_from_namespace

Overview

Provides ASIC instance given a corresponding namespace.

Will return default ASIC if no namespace is provided.

Examples

def test_fun(duthosts, rand_one_dut_hostname):
    duthost = duthosts[rand_one_dut_hostname]

    namespaces = duthost.get_backend_asic_namespace_list()

    backend_sonic_asic = duthost.asic_instance_from_namespace(namespaces[0])

Arguments

  • namespace - namespace corresponding to desired ASIC instance
    • Required: False
    • Type: String
    • Default: $DEFAULT_NAMESPACE

Expected Output

An ASIC instance corresponding to provided namespace