mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Remove f5-sdk from bigip_device_facts and add more facts (#48462)
This commit is contained in:
parent
de066ceef8
commit
a1a899353c
2 changed files with 1450 additions and 367 deletions
File diff suppressed because it is too large
Load diff
|
@ -14,9 +14,6 @@ from nose.plugins.skip import SkipTest
|
|||
if sys.version_info < (2, 7):
|
||||
raise SkipTest("F5 Ansible modules require Python >= 2.7")
|
||||
|
||||
from units.compat import unittest
|
||||
from units.compat.mock import Mock
|
||||
from units.compat.mock import patch
|
||||
from ansible.module_utils.basic import AnsibleModule
|
||||
from ansible.module_utils.six import iteritems
|
||||
|
||||
|
@ -26,11 +23,16 @@ try:
|
|||
from library.modules.bigip_device_facts import VirtualAddressesParameters
|
||||
from library.modules.bigip_device_facts import ArgumentSpec
|
||||
from library.modules.bigip_device_facts import ModuleManager
|
||||
from library.module_utils.network.f5.common import F5ModuleError
|
||||
from library.module_utils.network.f5.common import iControlUnexpectedHTTPError
|
||||
|
||||
from f5.bigip.tm.gtm.pool import A
|
||||
from f5.utils.responses.handlers import Stats
|
||||
from test.unit.modules.utils import set_module_args
|
||||
|
||||
# In Ansible 2.8, Ansible changed import paths.
|
||||
from test.units.compat import unittest
|
||||
from test.units.compat.mock import Mock
|
||||
from test.units.compat.mock import patch
|
||||
|
||||
from test.units.modules.utils import set_module_args
|
||||
except ImportError:
|
||||
try:
|
||||
from ansible.modules.network.f5.bigip_device_pool import Parameters
|
||||
|
@ -38,10 +40,15 @@ except ImportError:
|
|||
from ansible.modules.network.f5.bigip_device_pool import VirtualAddressesParameters
|
||||
from ansible.modules.network.f5.bigip_device_pool import ArgumentSpec
|
||||
from ansible.modules.network.f5.bigip_device_pool import ModuleManager
|
||||
from ansible.module_utils.network.f5.common import F5ModuleError
|
||||
from ansible.module_utils.network.f5.common import iControlUnexpectedHTTPError
|
||||
|
||||
from f5.bigip.tm.gtm.pool import A
|
||||
from f5.utils.responses.handlers import Stats
|
||||
|
||||
# Ansible 2.8 imports
|
||||
from units.compat import unittest
|
||||
from units.compat.mock import Mock
|
||||
from units.compat.mock import patch
|
||||
|
||||
from units.modules.utils import set_module_args
|
||||
except ImportError:
|
||||
raise SkipTest("F5 Ansible modules require the f5-sdk Python library")
|
||||
|
|
Loading…
Reference in a new issue