# Path: acos_client/errors.py
# class RequiredAttributeNotSpecified(Exception):
# class ACOSException(Exception):
# class ACOSUnsupportedVersion(ACOSException):
# class ACOSUnknownError(ACOSException):
# class AddressSpecifiedIsInUse(ACOSException):
# class AuthenticationFailure(ACOSException):
# class InvalidSessionID(ACOSException):
# class Exists(ACOSException):
# class NotFound(ACOSException):
# class NoSuchServiceGroup(ACOSException):
# class NotImplemented(ACOSException):
# class InUse(ACOSException):
# class InvalidPartitionParameter(ACOSException):
# class MemoryFault(ACOSException):
# class InvalidParameter(ACOSException):
# class OutOfPartitions(ACOSException):
# class PartitionIdExists(ACOSException):
# class HMMissingHttpPassive(ACOSException):
# class AxapiJsonFormatError(ACOSException):
# class ConfigManagerNotReady(ACOSException):
# class DhcpAcquireFailed(ACOSException):
# class InvalidInteger(ACOSException):
# class CertificateParsingFailed(ACOSException):
# class KeyParsingFailed(ACOSException):
# class FeatureNotSupported(ACOSException):
# class ACOSSystemNotReady(ACOSException):
# class ACOSSystemIsBusy(ACOSException):
# class LicenseOptionNotAllowed(ACOSException):
#     def __init__(self, url, attribute, requires=[]):
#     def __init__(self, code=1, msg=''):
#     def __str__(self):


import ipaddress
import six
import time
from acos_client import errors as ae
                sleep_secs = 1.0

            if retry_count < retry_limit:
                time.sleep(sleep_secs)
                try:
                    p = self.client.current_partition
                    self.client.session.close()
                    self.client.partition.active(p)
                except Exception:
                    pass
                return self._request(method, action, params, retry_count + 1, max_retries=max_retries,
                                     timeout=timeout, axapi_args=axapi_args, **kwargs)
            raise e

    def _get(self, action, params={}, max_retries=None, timeout=None, axapi_args=None, **kwargs):
        return self._request('GET', action, params, max_retries=max_retries, timeout=timeout,
                             axapi_args=axapi_args, **kwargs)

    def _post(self, action, params={}, max_retries=None, timeout=None, axapi_args=None, **kwargs):
        return self._request('POST', action, params, max_retries=max_retries, timeout=timeout,
                             axapi_args=axapi_args, **kwargs)

    def _put(self, action, params={}, max_retries=None, timeout=None, axapi_args=None, **kwargs):
        return self._request('PUT', action, params, max_retries=max_retries, timeout=timeout,
                             axapi_args=axapi_args, **kwargs)

    def _delete(self, action, params={}, max_retries=None, timeout=None, axapi_args=None, **kwargs):
        return self._request('DELETE', action, params, max_retries=max_retries, timeout=timeout,
                             axapi_args=axapi_args, **kwargs)


# Path: acos_client/errors.py
# class RequiredAttributeNotSpecified(Exception):
# class ACOSException(Exception):
# class ACOSUnsupportedVersion(ACOSException):
# class ACOSUnknownError(ACOSException):
# class AddressSpecifiedIsInUse(ACOSException):
# class AuthenticationFailure(ACOSException):
# class InvalidSessionID(ACOSException):
# class Exists(ACOSException):
# class NotFound(ACOSException):
# class NoSuchServiceGroup(ACOSException):
# class NotImplemented(ACOSException):
# class InUse(ACOSException):
# class InvalidPartitionParameter(ACOSException):
# class MemoryFault(ACOSException):
# class InvalidParameter(ACOSException):
# class OutOfPartitions(ACOSException):
# class PartitionIdExists(ACOSException):
# class HMMissingHttpPassive(ACOSException):
# class AxapiJsonFormatError(ACOSException):
# class ConfigManagerNotReady(ACOSException):
# class DhcpAcquireFailed(ACOSException):
# class InvalidInteger(ACOSException):
# class CertificateParsingFailed(ACOSException):
# class KeyParsingFailed(ACOSException):
# class FeatureNotSupported(ACOSException):
# class ACOSSystemNotReady(ACOSException):
# class ACOSSystemIsBusy(ACOSException):
# class LicenseOptionNotAllowed(ACOSException):
#     def __init__(self, url, attribute, requires=[]):
#     def __init__(self, code=1, msg=''):
#     def __str__(self):


# Path: acos_client/v30/base.py
import ipaddress
import six
import time
from acos_client import errors as ae

                sleep_secs = 1.0

            if retry_count < retry_limit:
                time.sleep(sleep_secs)
                try:
                    p = self.client.current_partition
                    self.client.session.close()
                    self.client.partition.active(p)
                except Exception:
                    pass
                return self._request(method, action, params, retry_count + 1, max_retries=max_retries,
                                     timeout=timeout, axapi_args=axapi_args, **kwargs)
            raise e

    def _get(self, action, params={}, max_retries=None, timeout=None, axapi_args=None, **kwargs):
        return self._request('GET', action, params, max_retries=max_retries, timeout=timeout,
                             axapi_args=axapi_args, **kwargs)

    def _post(self, action, params={}, max_retries=None, timeout=None, axapi_args=None, **kwargs):
        return self._request('POST', action, params, max_retries=max_retries, timeout=timeout,
                             axapi_args=axapi_args, **kwargs)

    def _put(self, action, params={}, max_retries=None, timeout=None, axapi_args=None, **kwargs):
        return self._request('PUT', action, params, max_retries=max_retries, timeout=timeout,
                             axapi_args=axapi_args, **kwargs)

    def _delete(self, action, params={}, max_retries=None, timeout=None, axapi_args=None, **kwargs):
        return self._request('DELETE', action, params, max_retries=max_retries, timeout=timeout,
                             axapi_args=axapi_args, **kwargs)


    def _is_ipv6(self, ip_address):