@classmethod
def parse_dn(cls, dn):
    """
        Parses the pod, node, module, port from a distinguished name
        of the interface.

        :param dn: String containing the interface distinguished name
        :returns: interface_type, pod, node, module, port
        """
    if 'sys' in dn.split('/'):
        return cls._parse_physical_dn(dn)
    elif '/extpaths-' in dn:
        return cls._parse_extpath_dn(dn)
    else:
        return cls._parse_path_dn(dn)
