@staticmethod
def _get_parent_dn(dn):
    """
        Gets the dn of the parent object
        Meant to be overridden by inheriting classes.
        Raises exception if not overridden.

        :returns: string containing dn
        """
    if 'comp/' in dn:
        return dn.split('comp/prov-VMware/ctrlr-[DC1]-vcenter1/hv-')[0]
    else:
        return dn.split('topology/lsnode-')[0]
