code: def parse_capacity_tags(dn):
      
      tags = []
      pod = get_pod_from_dn(dn)
      if pod:
          tags.append("fabric_pod_id:{}".format(pod))
      node = get_node_from_dn(dn)
      if node:
          tags.append("node_id:{}".format(node))
  
      return tags
docs: This parses tags from a dn designator. They look like this:
      topology/pod-1/node-101/sys/phys-[eth1/6]/CDeqptMacsectxpkts5min