'Gets zoneset status and mode.'

def get_zoning_status(self, fabric_ip, fabric_user, fabric_pwd, fabric_port, zoning_vsan):

    statusmap = {}
    conn = None
    try:
        LOG.debug('Southbound    connector:    %s', self.configuration.cisco_sb_connector)
        conn = importutils.import_object(self.configuration.cisco_sb_connector, ipaddress=fabric_ip, username=fabric_user, password=fabric_pwd, port=fabric_port, vsan=zoning_vsan)
        statusmap = conn.get_zoning_status()
        conn.cleanup()
    except Exception:
        msg = _('Failed    to    access    zoneset    status:%s')
        LOG.exception(msg)
        raise exception.FCZoneDriverException(msg)
    LOG.debug('Zoneset    status    from    fabric:    %s', statusmap)
    return statusmap
