Skip to content

Commit

Permalink
Fixing CI issues after sanity fixes broke it.
Browse files Browse the repository at this point in the history
  • Loading branch information
lhercot committed Aug 19, 2020
1 parent 8cc7a3a commit e4040ee
Show file tree
Hide file tree
Showing 35 changed files with 21 additions and 47 deletions.
20 changes: 11 additions & 9 deletions plugins/module_utils/mso.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ def mso_subnet_spec():
return dict(
subnet=dict(type='str', required=True, aliases=['ip']),
description=dict(type='str'),
scope=dict(type='str', choices=['private', 'public']),
shared=dict(type='bool'),
no_default_gateway=dict(type='bool'),
querier=dict(type='bool'),
scope=dict(type='str', default='private', choices=['private', 'public']),
shared=dict(type='bool', default=False),
no_default_gateway=dict(type='bool', default=False),
querier=dict(type='bool', default=False),
)


Expand Down Expand Up @@ -588,13 +588,15 @@ def make_subnets(self, data):
for subnet in data:
if 'subnet' in subnet:
subnet['ip'] = subnet.get('subnet')
if subnet.get('description') is None:
subnet['description'] = subnet.get('subnet')
subnets.append(dict(
ip=subnet.get('ip'),
description=str(subnet.get('description', subnet.get('ip'))),
scope=subnet.get('scope', 'private'),
shared=subnet.get('shared', False),
noDefaultGateway=subnet.get('no_default_gateway', False),
querier=subnet.get('querier', False),
description=str(subnet.get('description')),
scope=subnet.get('scope'),
shared=subnet.get('shared'),
noDefaultGateway=subnet.get('no_default_gateway'),
querier=subnet.get('querier'),
))

return subnets
Expand Down
1 change: 0 additions & 1 deletion plugins/modules/mso_label.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
- Manage labels on Cisco ACI Multi-Site.
author:
- Dag Wieers (@dagwieers)
version_added: '0.0.1'
options:
label:
description:
Expand Down
1 change: 0 additions & 1 deletion plugins/modules/mso_role.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
- Manage roles on Cisco ACI Multi-Site.
author:
- Dag Wieers (@dagwieers)
version_added: '0.0.1'
options:
role:
description:
Expand Down
1 change: 0 additions & 1 deletion plugins/modules/mso_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
- Manage schemas on Cisco ACI Multi-Site.
author:
- Dag Wieers (@dagwieers)
version_added: '0.0.1'
options:
schema:
description:
Expand Down
1 change: 0 additions & 1 deletion plugins/modules/mso_schema_site.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
- Manage sites on Cisco ACI Multi-Site.
author:
- Dag Wieers (@dagwieers)
version_added: '0.0.1'
options:
schema:
description:
Expand Down
1 change: 0 additions & 1 deletion plugins/modules/mso_schema_site_anp.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
- Manage site-local ANPs in schema template on Cisco ACI Multi-Site.
author:
- Dag Wieers (@dagwieers)
version_added: '0.0.1'
options:
schema:
description:
Expand Down
1 change: 0 additions & 1 deletion plugins/modules/mso_schema_site_anp_epg.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
- Manage site-local EPGs in schema template on Cisco ACI Multi-Site.
author:
- Dag Wieers (@dagwieers)
version_added: '0.0.1'
options:
schema:
description:
Expand Down
1 change: 0 additions & 1 deletion plugins/modules/mso_schema_site_anp_epg_domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
- Manage site-local EPG domains in schema template on Cisco ACI Multi-Site.
author:
- Nirav Katarmal (@nkatarmal-crest)
version_added: '0.0.1'
options:
schema:
description:
Expand Down
1 change: 0 additions & 1 deletion plugins/modules/mso_schema_site_anp_epg_staticleaf.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
- Manage site-local EPG static leafs in schema template on Cisco ACI Multi-Site.
author:
- Dag Wieers (@dagwieers)
version_added: '0.0.1'
options:
schema:
description:
Expand Down
1 change: 0 additions & 1 deletion plugins/modules/mso_schema_site_anp_epg_staticport.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
- Manage site-local EPG static ports in schema template on Cisco ACI Multi-Site.
author:
- Dag Wieers (@dagwieers)
version_added: '0.0.1'
options:
schema:
description:
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/mso_schema_site_anp_epg_subnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
- Manage site-local EPG subnets in schema template on Cisco ACI Multi-Site.
author:
- Dag Wieers (@dagwieers)
version_added: '0.0.1'
options:
schema:
description:
Expand Down Expand Up @@ -60,6 +59,7 @@
description:
- The scope of the subnet.
type: str
default: private
choices: [ private, public ]
shared:
description:
Expand Down
1 change: 0 additions & 1 deletion plugins/modules/mso_schema_site_bd.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
- Manage site-local BDs in schema template on Cisco ACI Multi-Site.
author:
- Dag Wieers (@dagwieers)
version_added: '0.0.1'
options:
schema:
description:
Expand Down
1 change: 0 additions & 1 deletion plugins/modules/mso_schema_site_bd_l3out.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
- Manage site-local BDs l3out's in schema template on Cisco ACI Multi-Site.
author:
- Dag Wieers (@dagwieers)
version_added: '0.0.1'
options:
schema:
description:
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/mso_schema_site_bd_subnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
- Manage site-local BD subnets in schema template on Cisco ACI Multi-Site.
author:
- Dag Wieers (@dagwieers)
version_added: '0.0.1'
options:
schema:
description:
Expand Down Expand Up @@ -55,6 +54,7 @@
description:
- The scope of the subnet.
type: str
default: private
choices: [ private, public ]
shared:
description:
Expand Down
1 change: 0 additions & 1 deletion plugins/modules/mso_schema_site_vrf.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
- Manage site-local VRFs in schema template on Cisco ACI Multi-Site.
author:
- Dag Wieers (@dagwieers)
version_added: '0.0.1'
options:
schema:
description:
Expand Down
1 change: 0 additions & 1 deletion plugins/modules/mso_schema_site_vrf_region.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
- Manage site-local VRF regions in schema template on Cisco ACI Multi-Site.
author:
- Dag Wieers (@dagwieers)
version_added: '0.0.1'
options:
schema:
description:
Expand Down
1 change: 0 additions & 1 deletion plugins/modules/mso_schema_site_vrf_region_cidr.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
author:
- Dag Wieers (@dagwieers)
- Lionel Hercot (@lhercot)
version_added: '0.0.1'
options:
schema:
description:
Expand Down
1 change: 0 additions & 1 deletion plugins/modules/mso_schema_site_vrf_region_cidr_subnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
author:
- Dag Wieers (@dagwieers)
- Lionel Hercot (@lhercot)
version_added: '0.0.1'
options:
schema:
description:
Expand Down
1 change: 0 additions & 1 deletion plugins/modules/mso_schema_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
- Manage templates on Cisco ACI Multi-Site.
author:
- Dag Wieers (@dagwieers)
version_added: '0.0.1'
options:
tenant:
description:
Expand Down
1 change: 0 additions & 1 deletion plugins/modules/mso_schema_template_anp.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
- Manage ANPs in schema templates on Cisco ACI Multi-Site.
author:
- Dag Wieers (@dagwieers)
version_added: '0.0.1'
options:
schema:
description:
Expand Down
5 changes: 2 additions & 3 deletions plugins/modules/mso_schema_template_anp_epg.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
- Manage EPGs in schema templates on Cisco ACI Multi-Site.
author:
- Dag Wieers (@dagwieers)
version_added: '0.0.1'
options:
schema:
description:
Expand Down Expand Up @@ -69,7 +68,6 @@
- The template that defines the referenced BD.
type: str
vrf:
version_added: '0.0.1'
description:
- The VRF associated to this ANP.
type: dict
Expand Down Expand Up @@ -108,6 +106,7 @@
description:
- The scope of the subnet.
type: str
default: private
choices: [ private, public ]
shared:
description:
Expand Down Expand Up @@ -150,7 +149,6 @@
- Whether this EPG is added to preferred group or not.
- When not specified, this parameter defaults to C(no).
type: bool
version_added: 0.0.1
state:
description:
- Use C(present) or C(absent) for adding or removing.
Expand Down Expand Up @@ -351,6 +349,7 @@ def main():
elif state == 'present':
bd_ref = mso.make_reference(bd, 'bd', schema_id, template)
vrf_ref = mso.make_reference(vrf, 'vrf', schema_id, template)
mso.stdout = str(subnets)
subnets = mso.make_subnets(subnets)

if display_name is None and not mso.existing:
Expand Down
1 change: 0 additions & 1 deletion plugins/modules/mso_schema_template_anp_epg_contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
- Manage EPG contracts in schema templates on Cisco ACI Multi-Site.
author:
- Dag Wieers (@dagwieers)
version_added: '0.0.1'
options:
schema:
description:
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/mso_schema_template_anp_epg_subnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
- Manage EPG subnets in schema templates on Cisco ACI Multi-Site.
author:
- Dag Wieers (@dagwieers)
version_added: '0.0.1'
options:
schema:
description:
Expand Down Expand Up @@ -55,6 +54,7 @@
description:
- The scope of the subnet.
type: str
default: private
choices: [ private, public ]
shared:
description:
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/mso_schema_template_bd.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
- Manage BDs in schema templates on Cisco ACI Multi-Site.
author:
- Dag Wieers (@dagwieers)
version_added: '0.0.1'
options:
schema:
description:
Expand Down Expand Up @@ -108,6 +107,7 @@
description:
- The scope of the subnet.
type: str
default: private
choices: [ private, public ]
shared:
description:
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/mso_schema_template_bd_subnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
- Manage BD subnets in schema templates on Cisco ACI Multi-Site.
author:
- Dag Wieers (@dagwieers)
version_added: '0.0.1'
options:
schema:
description:
Expand Down Expand Up @@ -50,6 +49,7 @@
description:
- The scope of the subnet.
type: str
default: private
choices: [ private, public ]
shared:
description:
Expand Down
1 change: 0 additions & 1 deletion plugins/modules/mso_schema_template_contract_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
- Manage contract filters in schema templates on Cisco ACI Multi-Site.
author:
- Dag Wieers (@dagwieers)
version_added: '0.0.1'
options:
schema:
description:
Expand Down
1 change: 0 additions & 1 deletion plugins/modules/mso_schema_template_deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
- Deploy schema templates to sites.
author:
- Dag Wieers (@dagwieers)
version_added: '0.0.1'
options:
schema:
description:
Expand Down
1 change: 0 additions & 1 deletion plugins/modules/mso_schema_template_external_epg.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
- Manage external EPGs in schema templates on Cisco ACI Multi-Site.
author:
- Dag Wieers (@dagwieers)
version_added: '0.0.1'
options:
schema:
description:
Expand Down
1 change: 0 additions & 1 deletion plugins/modules/mso_schema_template_filter_entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
- Manage filter entries in schema templates on Cisco ACI Multi-Site.
author:
- Dag Wieers (@dagwieers)
version_added: '0.0.1'
options:
schema:
description:
Expand Down
1 change: 0 additions & 1 deletion plugins/modules/mso_schema_template_l3out.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
- Manage l3outs in schema templates on Cisco ACI Multi-Site.
author:
- Dag Wieers (@dagwieers)
version_added: '0.0.1'
options:
schema:
description:
Expand Down
1 change: 0 additions & 1 deletion plugins/modules/mso_schema_template_vrf.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
- Manage VRFs in schema templates on Cisco ACI Multi-Site.
author:
- Dag Wieers (@dagwieers)
version_added: '0.0.1'
options:
schema:
description:
Expand Down
1 change: 0 additions & 1 deletion plugins/modules/mso_site.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
- Manage sites on Cisco ACI Multi-Site.
author:
- Dag Wieers (@dagwieers)
version_added: '0.0.1'
options:
apic_password:
description:
Expand Down
1 change: 0 additions & 1 deletion plugins/modules/mso_tenant.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
- Manage tenants on Cisco ACI Multi-Site.
author:
- Dag Wieers (@dagwieers)
version_added: '0.0.1'
options:
tenant:
description:
Expand Down
4 changes: 1 addition & 3 deletions plugins/modules/mso_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
- Manage users on Cisco ACI Multi-Site.
author:
- Dag Wieers (@dagwieers)
version_added: '0.0.1'
options:
user:
description:
Expand Down Expand Up @@ -65,7 +64,6 @@
- The roles for this user and their access types (read or write).
- Access type defaults to C(write).
type: list
elements: str
state:
description:
- Use C(present) or C(absent) for adding or removing.
Expand Down Expand Up @@ -171,7 +169,7 @@ def main():
# TODO: What possible options do we have ?
account_status=dict(type='str', choices=['active', 'inactive']),
domain=dict(type='str'),
roles=dict(type='list', elements='str'),
roles=dict(type='list'),
state=dict(type='str', default='present', choices=['absent', 'present', 'query']),
)

Expand Down
3 changes: 2 additions & 1 deletion tests/sanity/ignore-2.10.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
plugins/modules/mso_schema_template_bd.py validate-modules:invalid-ansiblemodule-schema
plugins/modules/mso_schema_template_bd.py validate-modules:invalid-ansiblemodule-schema
plugins/modules/mso_user.py validate-modules:parameter-list-no-elements

0 comments on commit e4040ee

Please sign in to comment.