(obj)
return get_hostname_from_dn(dn)
This grabs the hostname from the object
    The object looks something like this:
    {
    "dn": "topology/pod-1/node-101/sys/phys-[eth1/6]/CDeqptMacsectxpkts5min"
    ...
    }
This grabs the hostname from the object
    The object looks something like this:
    {
    "dn": "topology/pod-1/node-101/sys/phys-[eth1/6]/CDeqptMacsectxpkts5min"
    ...
    }
This grabs the hostname from the object The object looks something like this : { dn : topology / pod - 1 / node - 101 / sys / phys - [ eth1 / 6 ] / CDeqptMacsectxpkts5min ... }
def get_fabric_hostname(obj):
    """
    This grabs the hostname from the object
    The object looks something like this:
    {
    "dn": "topology/pod-1/node-101/sys/phys-[eth1/6]/CDeqptMacsectxpkts5min"
    ...
    }
    """
    attrs = get_attributes(obj)
    dn = attrs['dn']

    return get_hostname_from_dn(dn)
def get_fabric_hostname ( obj ) : attrs = get_attributes ( obj ) dn = attrs [ 'dn' ] return get_hostname_from_dn ( dn )