fix typos in network modules (#62320)

* fix typos in network modules
pull/62445/head
Andrey Klychkov 5 years ago committed by Alicia Cozine
parent aa673400da
commit f11429a80d

@ -100,7 +100,7 @@ options:
aliases: [ policy_group_name ] aliases: [ policy_group_name ]
interface_type: interface_type:
description: description:
- The type of interface for the static EPG deployement. - The type of interface for the static EPG deployment.
type: str type: str
choices: [ breakout, fex, port_channel, switch_port, vpc ] choices: [ breakout, fex, port_channel, switch_port, vpc ]
default: switch_port default: switch_port
@ -327,7 +327,7 @@ def main():
interface_type = module.params['interface_type'] interface_type = module.params['interface_type']
state = module.params['state'] state = module.params['state']
# Build child_configs dyanmically # Build child_configs dynamically
child_configs = [dict( child_configs = [dict(
infraPortBlk=dict( infraPortBlk=dict(
attributes=dict( attributes=dict(

@ -41,7 +41,7 @@ options:
mask: mask:
description: description:
- The subnet mask for the Subnet. - The subnet mask for the Subnet.
- This is the number assocated with CIDR notation. - This is the number associated with CIDR notation.
- For IPv4 addresses, accepted values range between C(0) and C(32). - For IPv4 addresses, accepted values range between C(0) and C(32).
- For IPv6 addresses, accepted Values range between C(0) and C(128). - For IPv6 addresses, accepted Values range between C(0) and C(128).
type: int type: int
@ -62,7 +62,7 @@ options:
type: str type: str
route_profile_l3_out: route_profile_l3_out:
description: description:
- The L3 Out that contains the assocated Route Profile. - The L3 Out that contains the associated Route Profile.
type: str type: str
scope: scope:
description: description:
@ -82,7 +82,7 @@ options:
description: description:
- Determines the Subnet's Control State. - Determines the Subnet's Control State.
- The C(querier_ip) option is used to treat the gateway_ip as an IGMP querier source IP. - The C(querier_ip) option is used to treat the gateway_ip as an IGMP querier source IP.
- The C(nd_ra) option is used to treate the gateway_ip address as a Neighbor Discovery Router Advertisement Prefix. - The C(nd_ra) option is used to treat the gateway_ip address as a Neighbor Discovery Router Advertisement Prefix.
- The C(no_gw) option is used to remove default gateway functionality from the gateway address. - The C(no_gw) option is used to remove default gateway functionality from the gateway address.
- The APIC defaults to C(nd_ra) when unset during creation. - The APIC defaults to C(nd_ra) when unset during creation.
type: str type: str
@ -382,7 +382,7 @@ def main():
gateway = module.params['gateway'] gateway = module.params['gateway']
mask = module.params['mask'] mask = module.params['mask']
if mask is not None and mask not in range(0, 129): if mask is not None and mask not in range(0, 129):
# TODO: split checkes between IPv4 and IPv6 Addresses # TODO: split checks between IPv4 and IPv6 Addresses
module.fail_json(msg='Valid Subnet Masks are 0 to 32 for IPv4 Addresses and 0 to 128 for IPv6 addresses') module.fail_json(msg='Valid Subnet Masks are 0 to 32 for IPv4 Addresses and 0 to 128 for IPv6 addresses')
if gateway is not None: if gateway is not None:
gateway = '{0}/{1}'.format(gateway, str(mask)) gateway = '{0}/{1}'.format(gateway, str(mask))

@ -48,7 +48,7 @@ options:
choices: [ unknown, vlan, vxlan ] choices: [ unknown, vlan, vxlan ]
multicast_address: multicast_address:
description: description:
- The muticast IP address to use for the virtual switch. - The multicast IP address to use for the virtual switch.
type: str type: str
state: state:
description: description:

@ -54,9 +54,9 @@ options:
type: int type: int
encap_mode: encap_mode:
description: description:
- The ecapsulataion method to be used. - The encapsulation method to be used.
- The APIC defaults to C(auto) when unset during creation. - The APIC defaults to C(auto) when unset during creation.
- If vxlan is slected, switching_mode must be "AVE". - If vxlan is selected, switching_mode must be "AVE".
type: str type: str
choices: [ auto, vlan, vxlan ] choices: [ auto, vlan, vxlan ]
switching_mode: switching_mode:
@ -337,7 +337,7 @@ def main():
if encap in range(1, 4097): if encap in range(1, 4097):
encap = 'vlan-{0}'.format(encap) encap = 'vlan-{0}'.format(encap)
else: else:
module.fail_json(msg='Valid VLAN assigments are from 1 to 4096') module.fail_json(msg='Valid VLAN assignments are from 1 to 4096')
encap_mode = module.params['encap_mode'] encap_mode = module.params['encap_mode']
switching_mode = module.params['switching_mode'] switching_mode = module.params['switching_mode']
epg = module.params['epg'] epg = module.params['epg']
@ -347,7 +347,7 @@ def main():
if primary_encap in range(1, 4097): if primary_encap in range(1, 4097):
primary_encap = 'vlan-{0}'.format(primary_encap) primary_encap = 'vlan-{0}'.format(primary_encap)
else: else:
module.fail_json(msg='Valid VLAN assigments are from 1 to 4096') module.fail_json(msg='Valid VLAN assignments are from 1 to 4096')
resolution_immediacy = module.params['resolution_immediacy'] resolution_immediacy = module.params['resolution_immediacy']
state = module.params['state'] state = module.params['state']
tenant = module.params['tenant'] tenant = module.params['tenant']

@ -58,7 +58,7 @@ options:
- This set the hour of execution - This set the hour of execution
minute: minute:
description: description:
- This sets the minute of execution, used in conjuntion with hour - This sets the minute of execution, used in conjunction with hour
day: day:
description: description:
- This sets the day when execution will take place - This sets the day when execution will take place

@ -32,7 +32,7 @@ options:
required: true required: true
version: version:
description: description:
- The version of the firmware assoicated with this policy. This value is very import as well as constructing - The version of the firmware associated with this policy. This value is very import as well as constructing
- it correctly. The syntax for this field is n9000-xx.x. If you look at the firmware repository using the UI - it correctly. The syntax for this field is n9000-xx.x. If you look at the firmware repository using the UI
- each version will have a "Full Version" column, this is the value you need to use. So, if the Full Version - each version will have a "Full Version" column, this is the value you need to use. So, if the Full Version
- is 13.1(1i), the value for this field would be n9000-13.1(1i) - is 13.1(1i), the value for this field would be n9000-13.1(1i)

@ -109,7 +109,7 @@ options:
description: description:
- The interval between LSA retransmissions. - The interval between LSA retransmissions.
- The retransmit interval occurs while the router is waiting for an acknowledgement from the neighbor router that it received the LSA. - The retransmit interval occurs while the router is waiting for an acknowledgement from the neighbor router that it received the LSA.
- If no acknowlegment is received at the end of the interval, then the LSA is resent. - If no acknowledgment is received at the end of the interval, then the LSA is resent.
- Accepted values range between C(1) and C(65535). - Accepted values range between C(1) and C(65535).
- The APIC defaults to C(5) when unset during creation. - The APIC defaults to C(5) when unset during creation.
type: int type: int

@ -186,7 +186,7 @@ from ansible.module_utils.network.aci.aci import ACIModule, aci_argument_spec
def main(): def main():
argument_spec = aci_argument_spec() argument_spec = aci_argument_spec()
argument_spec.update( argument_spec.update(
tenant=dict(type='str', aliases=['tenant_name']), # Not required for quering all objects tenant=dict(type='str', aliases=['tenant_name']), # Not required for querying all objects
rtp=dict(type='str', aliases=['name', 'rtp_name']), # Not required for querying all objects rtp=dict(type='str', aliases=['name', 'rtp_name']), # Not required for querying all objects
description=dict(type='str', aliases=['descr']), description=dict(type='str', aliases=['descr']),
tag=dict(type='int'), tag=dict(type='int'),

@ -50,7 +50,7 @@ options:
type: raw type: raw
src: src:
description: description:
- Name of the absolute path of the filname that includes the body - Name of the absolute path of the filename that includes the body
of the HTTP request being sent to the ACI fabric. of the HTTP request being sent to the ACI fabric.
- If you require a templated payload, use the C(content) parameter - If you require a templated payload, use the C(content) parameter
together with the C(template) lookup plugin, or use M(template). together with the C(template) lookup plugin, or use M(template).
@ -107,7 +107,7 @@ EXAMPLES = r'''
fvTenant: fvTenant:
attributes: attributes:
name: Sales name: Sales
descr: Sales departement descr: Sales department
delegate_to: localhost delegate_to: localhost
- name: Add a tenant using a JSON string - name: Add a tenant using a JSON string
@ -123,7 +123,7 @@ EXAMPLES = r'''
"fvTenant": { "fvTenant": {
"attributes": { "attributes": {
"name": "Sales", "name": "Sales",
"descr": "Sales departement" "descr": "Sales department"
} }
} }
} }

@ -56,7 +56,7 @@ options:
aliases: [ primary_vlan, primary_vlan_id ] aliases: [ primary_vlan, primary_vlan_id ]
deploy_immediacy: deploy_immediacy:
description: description:
- The Deployement Immediacy of Static EPG on PC, VPC or Interface. - The Deployment Immediacy of Static EPG on PC, VPC or Interface.
- The APIC defaults to C(lazy) when unset during creation. - The APIC defaults to C(lazy) when unset during creation.
type: str type: str
choices: [ immediate, lazy ] choices: [ immediate, lazy ]
@ -72,7 +72,7 @@ options:
aliases: [ interface_mode_name, mode ] aliases: [ interface_mode_name, mode ]
interface_type: interface_type:
description: description:
- The type of interface for the static EPG deployement. - The type of interface for the static EPG deployment.
type: str type: str
choices: [ fex, port_channel, switch_port, vpc ] choices: [ fex, port_channel, switch_port, vpc ]
default: switch_port default: switch_port

@ -66,7 +66,7 @@ options:
type: int type: int
description: description:
description: description:
- Description for the End point rentention policy. - Description for the End point retention policy.
type: str type: str
aliases: [ descr ] aliases: [ descr ]
state: state:

@ -15,7 +15,7 @@ DOCUMENTATION = r'''
module: aci_tenant_span_src_group_to_dst_group module: aci_tenant_span_src_group_to_dst_group
short_description: Bind SPAN source groups to destination groups (span:SpanLbl) short_description: Bind SPAN source groups to destination groups (span:SpanLbl)
description: description:
- Bind SPAN source groups to associated destinaton groups on Cisco ACI fabrics. - Bind SPAN source groups to associated destination groups on Cisco ACI fabrics.
version_added: '2.4' version_added: '2.4'
options: options:
description: description:

@ -105,7 +105,7 @@ options:
type: str type: str
enhanced_lagpolicy_dn: enhanced_lagpolicy_dn:
description: description:
- Distingushied name of EPG lagpolicy. This attribute can only be used with vmmDomain domain association. - Distinguished name of EPG lagpolicy. This attribute can only be used with vmmDomain domain association.
type: str type: str
state: state:
description: description:
@ -328,7 +328,7 @@ def main():
microSegVlan = dict(vlanType=micro_seg_vlan_type, vlan=micro_seg_vlan) microSegVlan = dict(vlanType=micro_seg_vlan_type, vlan=micro_seg_vlan)
vmmDomainProperties['microSegVlan'] = microSegVlan vmmDomainProperties['microSegVlan'] = microSegVlan
elif not micro_seg_vlan_type and micro_seg_vlan: elif not micro_seg_vlan_type and micro_seg_vlan:
mso.fail_json(msg="micro_seg_vlan_type is required when micro_seg_vlan is provied.") mso.fail_json(msg="micro_seg_vlan_type is required when micro_seg_vlan is provided.")
elif micro_seg_vlan_type and not micro_seg_vlan: elif micro_seg_vlan_type and not micro_seg_vlan:
mso.fail_json(msg="micro_seg_vlan is required when micro_seg_vlan_type is provided.") mso.fail_json(msg="micro_seg_vlan is required when micro_seg_vlan_type is provided.")
@ -336,7 +336,7 @@ def main():
portEncapVlan = dict(vlanType=port_encap_vlan_type, vlan=port_encap_vlan) portEncapVlan = dict(vlanType=port_encap_vlan_type, vlan=port_encap_vlan)
vmmDomainProperties['portEncapVlan'] = portEncapVlan vmmDomainProperties['portEncapVlan'] = portEncapVlan
elif not port_encap_vlan_type and port_encap_vlan: elif not port_encap_vlan_type and port_encap_vlan:
mso.fail_json(msg="port_encap_vlan_type is required when port_encap_vlan is provied.") mso.fail_json(msg="port_encap_vlan_type is required when port_encap_vlan is provided.")
elif port_encap_vlan_type and not port_encap_vlan: elif port_encap_vlan_type and not port_encap_vlan:
mso.fail_json(msg="port_encap_vlan is required when port_encap_vlan_type is provided.") mso.fail_json(msg="port_encap_vlan is required when port_encap_vlan_type is provided.")
@ -355,9 +355,9 @@ def main():
epgLagPol = dict(enhancedLagPol=enhancedLagPol) epgLagPol = dict(enhancedLagPol=enhancedLagPol)
vmmDomainProperties['epgLagPol'] = epgLagPol vmmDomainProperties['epgLagPol'] = epgLagPol
elif not enhanced_lagpolicy_name and enhanced_lagpolicy_dn: elif not enhanced_lagpolicy_name and enhanced_lagpolicy_dn:
mso.fail_json(msg="enhanced_lagpolicy_name is required when enhanced_lagpolicy_dn is provied.") mso.fail_json(msg="enhanced_lagpolicy_name is required when enhanced_lagpolicy_dn is provided.")
elif enhanced_lagpolicy_name and not enhanced_lagpolicy_dn: elif enhanced_lagpolicy_name and not enhanced_lagpolicy_dn:
mso.fail_json(msg="enhanced_lagpolicy_dn is required when enhanced_lagpolicy_name is provied.") mso.fail_json(msg="enhanced_lagpolicy_dn is required when enhanced_lagpolicy_name is provided.")
payload = dict( payload = dict(
dn=domain_dn, dn=domain_dn,

@ -131,7 +131,7 @@ options:
choices: [ enforced, unenforced ] choices: [ enforced, unenforced ]
intersite_multicaste_source: intersite_multicaste_source:
description: description:
- Whether intersite multicase source is enabled. - Whether intersite multicast source is enabled.
- When not specified, this parameter defaults to C(no). - When not specified, this parameter defaults to C(no).
type: bool type: bool
preferred_group: preferred_group:

@ -79,7 +79,7 @@ options:
against the contents of source. There are times when it is not against the contents of source. There are times when it is not
desirable to have the task get the current running-config for desirable to have the task get the current running-config for
every task in a playbook. The I(config) argument allows the every task in a playbook. The I(config) argument allows the
implementer to pass in the configuruation to use as the base implementer to pass in the configuration to use as the base
config for comparison. config for comparison.
""" """

@ -69,7 +69,7 @@ options:
apdex_rum_threshold: apdex_rum_threshold:
description: description:
- If a client is able to load a page in less than the satisfactory latency threshold, the pageload is considered satisfied. - If a client is able to load a page in less than the satisfactory latency threshold, the pageload is considered satisfied.
- It is considered tolerated if it is greater than satisfied but less than the tolerated latency multiplied by satisifed latency. - It is considered tolerated if it is greater than satisfied but less than the tolerated latency multiplied by satisfied latency.
- Greater than this number and the client's request is considered frustrated. - Greater than this number and the client's request is considered frustrated.
- A pageload includes the time for dns lookup, download of all http objects, and page render time. - A pageload includes the time for dns lookup, download of all http objects, and page render time.
- Allowed values are 1-30000. - Allowed values are 1-30000.
@ -128,7 +128,7 @@ options:
- Default value when not specified in API or module is interpreted by Avi Controller as 50. - Default value when not specified in API or module is interpreted by Avi Controller as 50.
conn_lossy_zero_win_size_event_threshold: conn_lossy_zero_win_size_event_threshold:
description: description:
- A client connection is considered lossy when percentage of times a packet could not be trasmitted due to tcp zero window is above this threshold. - A client connection is considered lossy when percentage of times a packet could not be transmitted due to tcp zero window is above this threshold.
- Allowed values are 0-100. - Allowed values are 0-100.
- Default value when not specified in API or module is interpreted by Avi Controller as 2. - Default value when not specified in API or module is interpreted by Avi Controller as 2.
conn_server_lossy_ooo_threshold: conn_server_lossy_ooo_threshold:
@ -148,7 +148,7 @@ options:
- Default value when not specified in API or module is interpreted by Avi Controller as 50. - Default value when not specified in API or module is interpreted by Avi Controller as 50.
conn_server_lossy_zero_win_size_event_threshold: conn_server_lossy_zero_win_size_event_threshold:
description: description:
- A server connection is considered lossy when percentage of times a packet could not be trasmitted due to tcp zero window is above this threshold. - A server connection is considered lossy when percentage of times a packet could not be transmitted due to tcp zero window is above this threshold.
- Allowed values are 0-100. - Allowed values are 0-100.
- Default value when not specified in API or module is interpreted by Avi Controller as 2. - Default value when not specified in API or module is interpreted by Avi Controller as 2.
description: description:

@ -200,7 +200,7 @@ EXAMPLES = """
username: "{{ username }}" username: "{{ username }}"
password: "{{ password }}" password: "{{ password }}"
controller: "{{ controller }}" controller: "{{ controller }}"
# On basis of cluster leader uuid dns_configs is set for that perticular leader cluster # On basis of cluster leader uuid dns_configs is set for that particular leader cluster
leader_cluster_uuid: "cluster-84aa795f-8f09-42bb-97a4-5103f4a53da9" leader_cluster_uuid: "cluster-84aa795f-8f09-42bb-97a4-5103f4a53da9"
name: "test-gslb" name: "test-gslb"
avi_api_update_method: patch avi_api_update_method: patch
@ -228,7 +228,7 @@ EXAMPLES = """
username: "{{ username }}" username: "{{ username }}"
password: "{{ password }}" password: "{{ password }}"
controller: "{{ controller }}" controller: "{{ controller }}"
# On basis of cluster leader uuid dns_configs is set for that perticular leader cluster # On basis of cluster leader uuid dns_configs is set for that particular leader cluster
leader_cluster_uuid: "cluster-84aa795f-8f09-42bb-97a4-5103f4a53da9" leader_cluster_uuid: "cluster-84aa795f-8f09-42bb-97a4-5103f4a53da9"
name: "test-gslb" name: "test-gslb"
avi_api_update_method: patch avi_api_update_method: patch

@ -76,7 +76,7 @@ options:
autoscale_launch_config_ref: autoscale_launch_config_ref:
description: description:
- If configured then avi will trigger orchestration of pool server creation and deletion. - If configured then avi will trigger orchestration of pool server creation and deletion.
- It is only supported for container clouds like mesos, opensift, kubernates, docker etc. - It is only supported for container clouds like mesos, openshift, kubernetes, docker, etc.
- It is a reference to an object of type autoscalelaunchconfig. - It is a reference to an object of type autoscalelaunchconfig.
autoscale_networks: autoscale_networks:
description: description:
@ -105,7 +105,7 @@ options:
- It is a reference to an object of type cloud. - It is a reference to an object of type cloud.
conn_pool_properties: conn_pool_properties:
description: description:
- Connnection pool properties. - Connection pool properties.
- Field introduced in 18.2.1. - Field introduced in 18.2.1.
version_added: "2.9" version_added: "2.9"
connection_ramp_duration: connection_ramp_duration:
@ -213,7 +213,7 @@ options:
- Http header name to be used for the hash key. - Http header name to be used for the hash key.
lb_algorithm_core_nonaffinity: lb_algorithm_core_nonaffinity:
description: description:
- Degree of non-affinity for core afffinity based server selection. - Degree of non-affinity for core affinity based server selection.
- Allowed values are 1-65535. - Allowed values are 1-65535.
- Field introduced in 17.1.3. - Field introduced in 17.1.3.
- Default value when not specified in API or module is interpreted by Avi Controller as 2. - Default value when not specified in API or module is interpreted by Avi Controller as 2.
@ -367,7 +367,7 @@ options:
description: description:
- Virtual routing context that the pool is bound to. - Virtual routing context that the pool is bound to.
- This is used to provide the isolation of the set of networks the pool is attached to. - This is used to provide the isolation of the set of networks the pool is attached to.
- The pool inherits the virtual routing conext of the virtual service, and this field is used only internally, and is set by pb-transform. - The pool inherits the virtual routing context of the virtual service, and this field is used only internally, and is set by pb-transform.
- It is a reference to an object of type vrfcontext. - It is a reference to an object of type vrfcontext.
extends_documentation_fragment: extends_documentation_fragment:
- avi - avi

@ -417,7 +417,7 @@ options:
- Instance/flavor name for se instance. - Instance/flavor name for se instance.
iptables: iptables:
description: description:
- Iptable rules. - Iptables rules.
least_load_core_selection: least_load_core_selection:
description: description:
- Select core with least load for new flow. - Select core with least load for new flow.
@ -925,7 +925,7 @@ options:
waf_learning_memory: waf_learning_memory:
description: description:
- Amount of memory reserved on se for waf learning. - Amount of memory reserved on se for waf learning.
- This can be atmost 5% of se memory. - Cannot exceed 5% of se memory.
- Field deprecated in 18.2.3. - Field deprecated in 18.2.3.
- Field introduced in 18.1.2. - Field introduced in 18.1.2.
- Default value when not specified in API or module is interpreted by Avi Controller as 0. - Default value when not specified in API or module is interpreted by Avi Controller as 0.

@ -306,7 +306,7 @@ options:
version_added: "2.4" version_added: "2.4"
performance_limits: performance_limits:
description: description:
- Optional settings that determine performance limits like max connections or bandwdith etc. - Optional settings that determine performance limits like max connections or bandwidth etc.
pool_group_ref: pool_group_ref:
description: description:
- The pool group is an object that contains pools. - The pool group is an object that contains pools.

@ -54,7 +54,7 @@ options:
type: str type: str
destination: destination:
description: description:
- Destionation object of the access rule. - Destination object of the access rule.
type: str type: str
action: action:
description: description:

@ -77,7 +77,7 @@ options:
choices: ['Inactive', 'Ask', 'Prevent', 'Detect'] choices: ['Inactive', 'Ask', 'Prevent', 'Detect']
indicator: indicator:
description: description:
- The indicator whose action is to be overriden. - The indicator whose action is to be overridden.
type: str type: str
ips_settings: ips_settings:
description: description:

@ -1116,7 +1116,7 @@ class AaaServer(object):
xml = self.netconf_set_config(module=module, conf_str=conf_str) xml = self.netconf_set_config(module=module, conf_str=conf_str)
if "<ok/>" not in xml: if "<ok/>" not in xml:
module.fail_json(msg='Error: Delete authorization domian failed.') module.fail_json(msg='Error: Delete authorization domain failed.')
cmds = [] cmds = []
cmd = "undo authorization-scheme" cmd = "undo authorization-scheme"

@ -34,10 +34,10 @@ notes:
- The relevant configurations will be deleted if DLDP is disabled using enable=disable. - The relevant configurations will be deleted if DLDP is disabled using enable=disable.
- When using auth_mode=none, it will restore the default DLDP authentication mode. By default, - When using auth_mode=none, it will restore the default DLDP authentication mode. By default,
DLDP packets are not authenticated. DLDP packets are not authenticated.
- By default, the working mode of DLDP is enhance, so you are advised to use work_mode=enhance to restore defualt - By default, the working mode of DLDP is enhance, so you are advised to use work_mode=enhance to restore default
DLDP working mode. DLDP working mode.
- The default interval for sending Advertisement packets is 5 seconds, so you are advised to use time_interval=5 to - The default interval for sending Advertisement packets is 5 seconds, so you are advised to use time_interval=5 to
restore defualt DLDP interval. restore default DLDP interval.
options: options:
enable: enable:
description: description:
@ -125,7 +125,7 @@ proposed:
"work_mode": "normal" "work_mode": "normal"
} }
existing: existing:
description: k/v pairs of existing global DLDP configration description: k/v pairs of existing global DLDP configuration
returned: always returned: always
type: dict type: dict
sample: { sample: {
@ -135,7 +135,7 @@ existing:
"work_mode": "enhance" "work_mode": "enhance"
} }
end_state: end_state:
description: k/v pairs of global DLDP configration after module execution description: k/v pairs of global DLDP configuration after module execution
returned: always returned: always
type: dict type: dict
sample: { sample: {
@ -204,14 +204,14 @@ CE_NC_MERGE_DLDP_GLOBAL_CONFIG_TAIL = """
class Dldp(object): class Dldp(object):
"""Manage global dldp configration""" """Manage global dldp configuration"""
def __init__(self, argument_spec): def __init__(self, argument_spec):
self.spec = argument_spec self.spec = argument_spec
self.module = None self.module = None
self.init_module() self.init_module()
# DLDP global configration info # DLDP global configuration info
self.enable = self.module.params['enable'] or None self.enable = self.module.params['enable'] or None
self.work_mode = self.module.params['work_mode'] or None self.work_mode = self.module.params['work_mode'] or None
self.internal = self.module.params['time_interval'] or None self.internal = self.module.params['time_interval'] or None
@ -324,7 +324,7 @@ class Dldp(object):
topo = root.find("dldp/dldpSys") topo = root.find("dldp/dldpSys")
if not topo: if not topo:
self.module.fail_json( self.module.fail_json(
msg="Error: Get current DLDP configration failed.") msg="Error: Get current DLDP configuration failed.")
for eles in topo: for eles in topo:
if eles.tag in ["dldpEnable", "dldpInterval", "dldpWorkMode", "dldpAuthMode"]: if eles.tag in ["dldpEnable", "dldpInterval", "dldpWorkMode", "dldpAuthMode"]:

@ -32,7 +32,7 @@ author:
- Zhou Zhijin (@QijunPan) - Zhou Zhijin (@QijunPan)
notes: notes:
- If C(state=present, enable=disable), interface DLDP enable will be turned off and - If C(state=present, enable=disable), interface DLDP enable will be turned off and
related interface DLDP confuration will be cleared. related interface DLDP configuration will be cleared.
- If C(state=absent), only local_mac is supported to configure. - If C(state=absent), only local_mac is supported to configure.
options: options:
interface: interface:
@ -106,7 +106,7 @@ EXAMPLES = '''
reset: enable reset: enable
provider: "{{ cli }}" provider: "{{ cli }}"
- name: "Unconfigure interface DLDP local mac addreess when C(state=absent)" - name: "Unconfigure interface DLDP local mac address when C(state=absent)"
ce_dldp_interface: ce_dldp_interface:
interface: 40GE2/0/1 interface: 40GE2/0/1
state: absent state: absent
@ -127,7 +127,7 @@ proposed:
"reset": "enable" "reset": "enable"
} }
existing: existing:
description: k/v pairs of existing interface DLDP configration description: k/v pairs of existing interface DLDP configuration
returned: always returned: always
type: dict type: dict
sample: { sample: {
@ -138,7 +138,7 @@ existing:
"reset": "disable" "reset": "disable"
} }
end_state: end_state:
description: k/v pairs of interface DLDP configration after module execution description: k/v pairs of interface DLDP configuration after module execution
returned: always returned: always
type: dict type: dict
sample: { sample: {
@ -309,14 +309,14 @@ def get_interface_type(interface):
class DldpInterface(object): class DldpInterface(object):
"""Manage interface dldp configration""" """Manage interface dldp configuration"""
def __init__(self, argument_spec): def __init__(self, argument_spec):
self.spec = argument_spec self.spec = argument_spec
self.module = None self.module = None
self.init_module() self.init_module()
# DLDP interface configration info # DLDP interface configuration info
self.interface = self.module.params['interface'] self.interface = self.module.params['interface']
self.enable = self.module.params['enable'] or None self.enable = self.module.params['enable'] or None
self.reset = self.module.params['reset'] or None self.reset = self.module.params['reset'] or None
@ -457,7 +457,7 @@ class DldpInterface(object):
topo = root.find("dldp/dldpInterfaces/dldpInterface") topo = root.find("dldp/dldpInterfaces/dldpInterface")
if topo is None: if topo is None:
self.module.fail_json( self.module.fail_json(
msg="Error: Get current DLDP configration failed.") msg="Error: Get current DLDP configuration failed.")
for eles in topo: for eles in topo:
if eles.tag in ["dldpEnable", "dldpCompatibleEnable", "dldpLocalMac"]: if eles.tag in ["dldpEnable", "dldpCompatibleEnable", "dldpLocalMac"]:
if not eles.text: if not eles.text:
@ -561,7 +561,7 @@ class DldpInterface(object):
reset=self.reset, state=self.state) reset=self.reset, state=self.state)
def get_update_cmd(self): def get_update_cmd(self):
"""Get updatede commands""" """Get updated commands"""
if self.same_conf: if self.same_conf:
return return
@ -624,7 +624,7 @@ class DldpInterface(object):
self.module.exit_json(**self.results) self.module.exit_json(**self.results)
def work(self): def work(self):
"""Excute task""" """Execute task"""
self.dldp_intf_conf = self.get_dldp_intf_exist_config() self.dldp_intf_conf = self.get_dldp_intf_exist_config()
self.check_params() self.check_params()

@ -399,7 +399,7 @@ class EthTrunk(object):
return False return False
def get_mode_xml_str(self): def get_mode_xml_str(self):
"""trunk mode netconf xml fromat string""" """trunk mode netconf xml format string"""
return MODE_CLI2XML.get(self.mode) return MODE_CLI2XML.get(self.mode)

@ -424,7 +424,7 @@ def is_valid_value(vrf_targe_value):
class EvpnBd(object): class EvpnBd(object):
"""Manange evpn instance in BD view""" """Manage evpn instance in BD view"""
def __init__(self, argument_spec, ): def __init__(self, argument_spec, ):
self.spec = argument_spec self.spec = argument_spec
@ -953,19 +953,19 @@ class EvpnBd(object):
for ele in self.vpn_target_import: for ele in self.vpn_target_import:
if ele not in self.evpn_info['vpn_target_import'] and ele not in self.evpn_info['vpn_target_both']: if ele not in self.evpn_info['vpn_target_import'] and ele not in self.evpn_info['vpn_target_both']:
self.module.fail_json( self.module.fail_json(
msg='Error: VPN target import attribute value %s doesnot exist.' % ele) msg='Error: VPN target import attribute value %s does not exist.' % ele)
if self.vpn_target_export: if self.vpn_target_export:
for ele in self.vpn_target_export: for ele in self.vpn_target_export:
if ele not in self.evpn_info['vpn_target_export'] and ele not in self.evpn_info['vpn_target_both']: if ele not in self.evpn_info['vpn_target_export'] and ele not in self.evpn_info['vpn_target_both']:
self.module.fail_json( self.module.fail_json(
msg='Error: VPN target export attribute value %s doesnot exist.' % ele) msg='Error: VPN target export attribute value %s does not exist.' % ele)
if self.vpn_target_both: if self.vpn_target_both:
for ele in self.vpn_target_both: for ele in self.vpn_target_both:
if ele not in self.evpn_info['vpn_target_both']: if ele not in self.evpn_info['vpn_target_both']:
self.module.fail_json( self.module.fail_json(
msg='Error: VPN target export and import attribute value %s doesnot exist.' % ele) msg='Error: VPN target export and import attribute value %s does not exist.' % ele)
def check_params(self): def check_params(self):
"""Check all input params""" """Check all input params"""
@ -990,7 +990,7 @@ class EvpnBd(object):
if self.route_distinguisher: if self.route_distinguisher:
if not self.evpn_info['route_distinguisher']: if not self.evpn_info['route_distinguisher']:
self.module.fail_json( self.module.fail_json(
msg='Error: Route distinguisher doesnot have been configured.') msg='Error: Route distinguisher has not been configured.')
else: else:
if self.route_distinguisher != self.evpn_info['route_distinguisher']: if self.route_distinguisher != self.evpn_info['route_distinguisher']:
self.module.fail_json( self.module.fail_json(
@ -1014,7 +1014,7 @@ class EvpnBd(object):
msg='Error: The vxlan vni is not configured or the bridge domain id is invalid.') msg='Error: The vxlan vni is not configured or the bridge domain id is invalid.')
def work(self): def work(self):
"""Excute task""" """Execute task"""
self.get_evpn_instance_info() self.get_evpn_instance_info()
self.process_input_params() self.process_input_params()

@ -182,7 +182,7 @@ def is_config_exist(cmp_cfg, test_cfg):
class EvpnBgpRr(object): class EvpnBgpRr(object):
"""Manange RR in BGP-EVPN address family view""" """Manage RR in BGP-EVPN address family view"""
def __init__(self, argument_spec): def __init__(self, argument_spec):
self.spec = argument_spec self.spec = argument_spec
@ -462,7 +462,7 @@ class EvpnBgpRr(object):
"""Check all input params""" """Check all input params"""
if self.cur_config['bgp_exist'] == 'false': if self.cur_config['bgp_exist'] == 'false':
self.module.fail_json(msg="Error: BGP view doesnot exist.") self.module.fail_json(msg="Error: BGP view does not exist.")
if self.bgp_instance: if self.bgp_instance:
if len(self.bgp_instance) < 1 or len(self.bgp_instance) > 31: if len(self.bgp_instance) < 1 or len(self.bgp_instance) > 31:
@ -491,7 +491,7 @@ class EvpnBgpRr(object):
msg='Error: Ip address cannot be configured as group-name.') msg='Error: Ip address cannot be configured as group-name.')
def work(self): def work(self):
"""Excute task""" """Execute task"""
self.get_current_config() self.get_current_config()
self.check_params() self.check_params()

@ -107,7 +107,7 @@ from ansible.module_utils.network.cloudengine.ce import ce_argument_spec
class EvpnGlobal(object): class EvpnGlobal(object):
"""Manange global configuration of EVPN""" """Manage global configuration of EVPN"""
def __init__(self, argument_spec, ): def __init__(self, argument_spec, ):
self.spec = argument_spec self.spec = argument_spec
@ -150,7 +150,7 @@ class EvpnGlobal(object):
self.updates_cmd.append(cmd) # show updates result self.updates_cmd.append(cmd) # show updates result
def get_evpn_global_info(self): def get_evpn_global_info(self):
""" get current EVPN global configration""" """ get current EVPN global configuration"""
self.global_info['evpnOverLay'] = 'disable' self.global_info['evpnOverLay'] = 'disable'
flags = list() flags = list()
@ -196,7 +196,7 @@ class EvpnGlobal(object):
return False return False
def config_evnp_global(self): def config_evnp_global(self):
""" set global EVPN configration""" """ set global EVPN configuration"""
if not self.conf_exist: if not self.conf_exist:
if self.overlay_enable == 'enable': if self.overlay_enable == 'enable':
self.cli_add_command('evpn-overlay enable') self.cli_add_command('evpn-overlay enable')
@ -208,7 +208,7 @@ class EvpnGlobal(object):
self.changed = True self.changed = True
def work(self): def work(self):
"""excute task""" """execute task"""
self.get_evpn_global_info() self.get_evpn_global_info()
self.get_existing() self.get_existing()
self.get_proposed() self.get_proposed()

@ -335,7 +335,7 @@ class FileCopy(object):
return False return False
def work(self): def work(self):
"""Excute task """ """Execute task """
if not HAS_SCP: if not HAS_SCP:
self.module.fail_json( self.module.fail_json(

@ -754,7 +754,7 @@ class MlagInterface(object):
self.changed = True self.changed = True
def set_mlag_interface(self): def set_mlag_interface(self):
"""set mlag interface atrribute info""" """set mlag interface attribute info"""
if self.is_mlag_interface_info_change(): if self.is_mlag_interface_info_change():
mlag_port = "Eth-Trunk" mlag_port = "Eth-Trunk"
@ -768,7 +768,7 @@ class MlagInterface(object):
recv_xml = set_nc_config(self.module, conf_str) recv_xml = set_nc_config(self.module, conf_str)
if "<ok/>" not in recv_xml: if "<ok/>" not in recv_xml:
self.module.fail_json( self.module.fail_json(
msg='Error: set mlag interface atrribute info failed.') msg='Error: set mlag interface attribute info failed.')
self.updates_cmd.append("interface %s" % mlag_port) self.updates_cmd.append("interface %s" % mlag_port)
if self.mlag_priority_id: if self.mlag_priority_id:
@ -815,7 +815,7 @@ class MlagInterface(object):
recv_xml = set_nc_config(self.module, conf_str) recv_xml = set_nc_config(self.module, conf_str)
if "<ok/>" not in recv_xml: if "<ok/>" not in recv_xml:
self.module.fail_json( self.module.fail_json(
msg='Error: set mlag interface atrribute info failed.') msg='Error: set mlag interface attribute info failed.')
if self.mlag_priority_id: if self.mlag_priority_id:
self.updates_cmd.append( self.updates_cmd.append(

@ -46,7 +46,7 @@ options:
and 1536 to 12288 for ToR switches. and 1536 to 12288 for ToR switches.
jumbo_min: jumbo_min:
description: description:
- Non-jumbo frame size threshod. The default value is 1518. - Non-jumbo frame size threshold. The default value is 1518.
The value is an integer that ranges from 1518 to jumbo_max, in bytes. The value is an integer that ranges from 1518 to jumbo_max, in bytes.
state: state:
description: description:

@ -216,7 +216,7 @@ def is_config_exist(cmp_cfg, test_cfg):
class NetstreamExport(object): class NetstreamExport(object):
"""Manange NetStream export""" """Manage NetStream export"""
def __init__(self, argument_spec): def __init__(self, argument_spec):
self.spec = argument_spec self.spec = argument_spec
@ -519,7 +519,7 @@ class NetstreamExport(object):
self.config_nets_export_ip_ver() self.config_nets_export_ip_ver()
def work(self): def work(self):
"""excute task""" """execute task"""
self.check_params() self.check_params()
self.get_proposed() self.get_proposed()

@ -250,7 +250,7 @@ class Ntp(object):
self.mutually_exclusive = [('server', 'peer')] self.mutually_exclusive = [('server', 'peer')]
self.init_module() self.init_module()
# ntp configration info # ntp configuration info
self.server = self.module.params['server'] or None self.server = self.module.params['server'] or None
self.peer = self.module.params['peer'] or None self.peer = self.module.params['peer'] or None
self.key_id = self.module.params['key_id'] self.key_id = self.module.params['key_id']
@ -362,7 +362,7 @@ class Ntp(object):
if self.vpn_name: if self.vpn_name:
if (len(self.vpn_name) < 1) or (len(self.vpn_name) > 31): if (len(self.vpn_name) < 1) or (len(self.vpn_name) > 31):
self.module.fail_json( self.module.fail_json(
msg='Error: VPN name length is beetween 1 and 31.') msg='Error: VPN name length is between 1 and 31.')
if self.address: if self.address:
self.check_ipaddr_validate() self.check_ipaddr_validate()
@ -579,7 +579,7 @@ class Ntp(object):
self.updates_cmd.append(cli_str) self.updates_cmd.append(cli_str)
def work(self): def work(self):
"""Excute task""" """Execute task"""
self.get_existing() self.get_existing()
self.get_proposed() self.get_proposed()

@ -207,7 +207,7 @@ class NtpAuth(object):
self.module = None self.module = None
self.init_module() self.init_module()
# ntp_auth configration info # ntp_auth configuration info
self.key_id = self.module.params['key_id'] self.key_id = self.module.params['key_id']
self.password = self.module.params['auth_pwd'] or None self.password = self.module.params['auth_pwd'] or None
self.auth_mode = self.module.params['auth_mode'] or None self.auth_mode = self.module.params['auth_mode'] or None
@ -483,7 +483,7 @@ class NtpAuth(object):
self.module.exit_json(**self.results) self.module.exit_json(**self.results)
def work(self): def work(self):
"""Excute task""" """Execute task"""
self.get_existing() self.get_existing()
self.get_proposed() self.get_proposed()

@ -147,7 +147,7 @@ from ansible.module_utils.basic import AnsibleModule
from ansible.module_utils.network.cloudengine.ce import get_nc_config, set_nc_config, ce_argument_spec from ansible.module_utils.network.cloudengine.ce import get_nc_config, set_nc_config, ce_argument_spec
# get snmp commutiny # get snmp community
CE_GET_SNMP_COMMUNITY_HEADER = """ CE_GET_SNMP_COMMUNITY_HEADER = """
<filter type="subtree"> <filter type="subtree">
<snmp xmlns="http://www.huawei.com/netconf/vrp" content-version="1.0" format-version="1.0"> <snmp xmlns="http://www.huawei.com/netconf/vrp" content-version="1.0" format-version="1.0">
@ -162,7 +162,7 @@ CE_GET_SNMP_COMMUNITY_TAIL = """
</snmp> </snmp>
</filter> </filter>
""" """
# merge snmp commutiny # merge snmp community
CE_MERGE_SNMP_COMMUNITY_HEADER = """ CE_MERGE_SNMP_COMMUNITY_HEADER = """
<config> <config>
<snmp xmlns="http://www.huawei.com/netconf/vrp" content-version="1.0" format-version="1.0"> <snmp xmlns="http://www.huawei.com/netconf/vrp" content-version="1.0" format-version="1.0">
@ -177,7 +177,7 @@ CE_MERGE_SNMP_COMMUNITY_TAIL = """
</snmp> </snmp>
</config> </config>
""" """
# create snmp commutiny # create snmp community
CE_CREATE_SNMP_COMMUNITY_HEADER = """ CE_CREATE_SNMP_COMMUNITY_HEADER = """
<config> <config>
<snmp xmlns="http://www.huawei.com/netconf/vrp" content-version="1.0" format-version="1.0"> <snmp xmlns="http://www.huawei.com/netconf/vrp" content-version="1.0" format-version="1.0">
@ -192,7 +192,7 @@ CE_CREATE_SNMP_COMMUNITY_TAIL = """
</snmp> </snmp>
</config> </config>
""" """
# delete snmp commutiny # delete snmp community
CE_DELETE_SNMP_COMMUNITY_HEADER = """ CE_DELETE_SNMP_COMMUNITY_HEADER = """
<config> <config>
<snmp xmlns="http://www.huawei.com/netconf/vrp" content-version="1.0" format-version="1.0"> <snmp xmlns="http://www.huawei.com/netconf/vrp" content-version="1.0" format-version="1.0">

@ -579,7 +579,7 @@ class Stp(object):
cmds = list() cmds = list()
# cofig stp global # config stp global
if self.stp_mode: if self.stp_mode:
if self.stp_mode != self.cur_cfg["stp_mode"]: if self.stp_mode != self.cur_cfg["stp_mode"]:
cmd = "stp mode %s" % self.stp_mode cmd = "stp mode %s" % self.stp_mode

@ -858,7 +858,7 @@ class SwitchPort(object):
if not self.is_l2switchport(): if not self.is_l2switchport():
self.module.fail_json( self.module.fail_json(
msg='Error: Interface is not layer2 swtich port.') msg='Error: Interface is not layer2 switch port.')
if self.state == "unconfigured": if self.state == "unconfigured":
if any([self.mode, self.default_vlan, self.pvid_vlan, self.trunk_vlans, self.untagged_vlans, self.tagged_vlans]): if any([self.mode, self.default_vlan, self.pvid_vlan, self.trunk_vlans, self.untagged_vlans, self.tagged_vlans]):
self.module.fail_json( self.module.fail_json(

@ -160,7 +160,7 @@ def build_config_xml(xmlstr):
class Vrf(object): class Vrf(object):
"""Manange vpn instance""" """Manage vpn instance"""
def __init__(self, argument_spec, ): def __init__(self, argument_spec, ):
self.spec = argument_spec self.spec = argument_spec

@ -260,7 +260,7 @@ def get_interface_type(interface):
class VrfInterface(object): class VrfInterface(object):
"""Manange vpn instance""" """Manage vpn instance"""
def __init__(self, argument_spec): def __init__(self, argument_spec):
self.spec = argument_spec self.spec = argument_spec
@ -483,7 +483,7 @@ class VrfInterface(object):
self.changed = True self.changed = True
def work(self): def work(self):
"""excute task""" """execute task"""
self.get_intf_conf_info() self.get_intf_conf_info()
self.check_params() self.check_params()

@ -816,7 +816,7 @@ class Vrrp(object):
recv_xml = set_nc_config(self.module, conf_str) recv_xml = set_nc_config(self.module, conf_str)
if "<ok/>" not in recv_xml: if "<ok/>" not in recv_xml:
self.module.fail_json( self.module.fail_json(
msg='Error: set vrrp global atrribute info failed.') msg='Error: set vrrp global attribute info failed.')
if self.gratuitous_arp_interval: if self.gratuitous_arp_interval:
self.updates_cmd.append( self.updates_cmd.append(
@ -860,7 +860,7 @@ class Vrrp(object):
recv_xml = set_nc_config(self.module, conf_str) recv_xml = set_nc_config(self.module, conf_str)
if "<ok/>" not in recv_xml: if "<ok/>" not in recv_xml:
self.module.fail_json( self.module.fail_json(
msg='Error: set vrrp global atrribute info failed.') msg='Error: set vrrp global attribute info failed.')
if self.gratuitous_arp_interval: if self.gratuitous_arp_interval:
self.updates_cmd.append("undo vrrp gratuitous-arp interval") self.updates_cmd.append("undo vrrp gratuitous-arp interval")
@ -912,7 +912,7 @@ class Vrrp(object):
recv_xml = set_nc_config(self.module, conf_str) recv_xml = set_nc_config(self.module, conf_str)
if "<ok/>" not in recv_xml: if "<ok/>" not in recv_xml:
self.module.fail_json( self.module.fail_json(
msg='Error: set vrrp group atrribute info failed.') msg='Error: set vrrp group attribute info failed.')
if self.interface and self.vrid: if self.interface and self.vrid:
self.updates_cmd.append("interface %s" % self.interface) self.updates_cmd.append("interface %s" % self.interface)
if self.vrrp_type == "admin": if self.vrrp_type == "admin":
@ -1021,7 +1021,7 @@ class Vrrp(object):
recv_xml = set_nc_config(self.module, conf_str) recv_xml = set_nc_config(self.module, conf_str)
if "<ok/>" not in recv_xml: if "<ok/>" not in recv_xml:
self.module.fail_json( self.module.fail_json(
msg='Error: set vrrp global atrribute info failed.') msg='Error: set vrrp global attribute info failed.')
if self.interface and self.vrid: if self.interface and self.vrid:
self.updates_cmd.append("interface %s" % self.interface) self.updates_cmd.append("interface %s" % self.interface)
if self.vrrp_type == "admin": if self.vrrp_type == "admin":

@ -79,7 +79,7 @@ EXAMPLES = '''
tasks: tasks:
- name: Create a papping between a VLAN and a BD - name: Create a mapping between a VLAN and a BD
ce_vxlan_vap: ce_vxlan_vap:
bridge_domain_id: 100 bridge_domain_id: 100
bind_vlan_id: 99 bind_vlan_id: 99

@ -151,7 +151,7 @@ msg:
description: Success or failure message description: Success or failure message
returned: always returned: always
type: str type: str
sample: "Config file tranferred to server" sample: "Config file transferred to server"
''' '''
import sys import sys
@ -171,7 +171,7 @@ from ansible.module_utils.basic import AnsibleModule
from collections import defaultdict from collections import defaultdict
# Utility Method to back up the running config or start up copnfig # Utility Method to back up the running config or start up config
# This method supports only SCP or SFTP or FTP or TFTP # This method supports only SCP or SFTP or FTP or TFTP
# Tuning of timeout parameter is pending # Tuning of timeout parameter is pending
def doConfigBackUp(module, prompt, answer): def doConfigBackUp(module, prompt, answer):
@ -266,7 +266,7 @@ def main():
# Logic to check when changes occur or not # Logic to check when changes occur or not
errorMsg = cnos.checkOutputForError(output) errorMsg = cnos.checkOutputForError(output)
if(errorMsg is None): if(errorMsg is None):
module.exit_json(changed=True, msg="Config file tranferred to server") module.exit_json(changed=True, msg="Config file transferred to server")
else: else:
module.fail_json(msg=errorMsg) module.fail_json(msg=errorMsg)

@ -125,7 +125,7 @@ options:
backdoor,route-map, Name of the route map ] backdoor,route-map, Name of the route map ]
bgpArg8: bgpArg8:
description: description:
- This is an overloaded bgp eigth argument. Usage of this argument - This is an overloaded bgp eight argument. Usage of this argument
can be found is the User Guide referenced above. can be found is the User Guide referenced above.
required: No required: No
default: Null default: Null

@ -116,7 +116,7 @@ msg:
description: Success or failure message description: Success or failure message
returned: always returned: always
type: str type: str
sample: "Image file tranferred to device" sample: "Image file transferred to device"
''' '''
import sys import sys
@ -231,7 +231,7 @@ def main():
# Logic to check when changes occur or not # Logic to check when changes occur or not
errorMsg = cnos.checkOutputForError(output) errorMsg = cnos.checkOutputForError(output)
if(errorMsg is None): if(errorMsg is None):
module.exit_json(changed=True, msg="Image file tranferred to device") module.exit_json(changed=True, msg="Image file transferred to device")
else: else:
module.fail_json(msg=errorMsg) module.fail_json(msg=errorMsg)

@ -152,7 +152,7 @@ msg:
description: Success or failure message description: Success or failure message
returned: always returned: always
type: str type: str
sample: "Config file tranferred to Device" sample: "Config file transferred to Device"
''' '''
import sys import sys
@ -172,7 +172,7 @@ from ansible.module_utils.basic import AnsibleModule
from collections import defaultdict from collections import defaultdict
# Utility Method to rollback the running config or start up copnfig # Utility Method to rollback the running config or start up config
# This method supports only SCP or SFTP or FTP or TFTP # This method supports only SCP or SFTP or FTP or TFTP
def doConfigRollBack(module, prompt, answer): def doConfigRollBack(module, prompt, answer):
host = module.params['host'] host = module.params['host']
@ -275,7 +275,7 @@ def main():
# need to add logic to check when changes occur or not # need to add logic to check when changes occur or not
errorMsg = cnos.checkOutputForError(output) errorMsg = cnos.checkOutputForError(output)
if(errorMsg is None): if(errorMsg is None):
module.exit_json(changed=True, msg="Config file tranferred to Device") module.exit_json(changed=True, msg="Config file transferred to Device")
else: else:
module.fail_json(msg=errorMsg) module.fail_json(msg=errorMsg)

@ -396,7 +396,7 @@ def main():
flags = ['all'] if module.params['defaults'] else [] flags = ['all'] if module.params['defaults'] else []
connection = get_connection(module) connection = get_connection(module)
# Refuse to diff_against: session if essions are disabled # Refuse to diff_against: session if sessions are disabled
if module.params['diff_against'] == 'session' and not connection.supports_sessions: if module.params['diff_against'] == 'session' and not connection.supports_sessions:
module.fail_json(msg="Cannot diff against sessions when sessions are disabled. Please change diff_against to another value") module.fail_json(msg="Cannot diff against sessions when sessions are disabled. Please change diff_against to another value")

@ -39,7 +39,7 @@ DOCUMENTATION = """
--- ---
module: exos_lldp_global module: exos_lldp_global
version_added: 2.9 version_added: 2.9
short_description: Configure and manage Link Layer Discovery Protocol(LLDP) attribures on EXOS platforms. short_description: Configure and manage Link Layer Discovery Protocol(LLDP) attributes on EXOS platforms.
description: This module configures and manages the Link Layer Discovery Protocol(LLDP) attributes on Extreme Networks EXOS platforms. description: This module configures and manages the Link Layer Discovery Protocol(LLDP) attributes on Extreme Networks EXOS platforms.
author: Ujwal Komarla (@ujwalkomarla) author: Ujwal Komarla (@ujwalkomarla)
notes: notes:

@ -445,7 +445,7 @@ class ModuleManager(object):
# This deals with cases where you're comparing a passphrase. # This deals with cases where you're comparing a passphrase.
# #
# Passphrases will always cause an idepotent operation to register # Passphrases will always cause an idempotent operation to register
# a change. Therefore, by specifying "force", you are instructing # a change. Therefore, by specifying "force", you are instructing
# the module to **not** ignore the passphrase. # the module to **not** ignore the passphrase.
# #

@ -77,7 +77,7 @@ options:
latency_threshold: latency_threshold:
description: description:
- Specifies the latency threshold for automatic heavy URL detection. - Specifies the latency threshold for automatic heavy URL detection.
- The accepted range is between 0 and 4294967295 miliseconds inclusive. - The accepted range is between 0 and 4294967295 milliseconds inclusive.
type: int type: int
exclude: exclude:
description: description:

@ -17,7 +17,7 @@ DOCUMENTATION = r'''
module: bigip_device_certificate module: bigip_device_certificate
short_description: Manage self-signed device certificates short_description: Manage self-signed device certificates
description: description:
- Module used to create and/or renew self-signed defice certificates for BIG-IP. - Module used to create and/or renew self-signed device certificates for BIG-IP.
version_added: 2.9 version_added: 2.9
options: options:
days_valid: days_valid:

@ -1932,37 +1932,37 @@ gtm_pools:
type: int type: int
qos_lcs: qos_lcs:
description: description:
- Weight assign to the Link Capacity performance factor when load balacing option - Weight assign to the Link Capacity performance factor when load balancing option
is QoS. is QoS.
returned: queried returned: queried
type: int type: int
qos_packet_rate: qos_packet_rate:
description: description:
- Weight assign to the Packet Rate performance factor when load balacing option - Weight assign to the Packet Rate performance factor when load balancing option
is QoS. is QoS.
returned: queried returned: queried
type: int type: int
qos_rtt: qos_rtt:
description: description:
- Weight assign to the Round Trip Time performance factor when load balacing option - Weight assign to the Round Trip Time performance factor when load balancing option
is QoS. is QoS.
returned: queried returned: queried
type: int type: int
qos_topology: qos_topology:
description: description:
- Weight assign to the Topology performance factor when load balacing option - Weight assign to the Topology performance factor when load balancing option
is QoS. is QoS.
returned: queried returned: queried
type: int type: int
qos_vs_capacity: qos_vs_capacity:
description: description:
- Weight assign to the Virtual Server performance factor when load balacing option - Weight assign to the Virtual Server performance factor when load balancing option
is QoS. is QoS.
returned: queried returned: queried
type: int type: int
qos_vs_score: qos_vs_score:
description: description:
- Weight assign to the Virtual Server Score performance factor when load balacing - Weight assign to the Virtual Server Score performance factor when load balancing
option is QoS. option is QoS.
returned: queried returned: queried
type: int type: int
@ -6070,7 +6070,7 @@ udp_profiles:
description: description:
- The Quality of Service level that the system assigns to - The Quality of Service level that the system assigns to
UDP packets when sending them to clients. UDP packets when sending them to clients.
- May be either numberic, or the value C(pass-through). - May be either numeric, or the value C(pass-through).
returned: queried returned: queried
type: str type: str
sample: pass-through sample: pass-through

@ -254,7 +254,7 @@ fallback_lb_method:
type: str type: str
sample: fewest-hops sample: fewest-hops
fallback_ip: fallback_ip:
description: New fallback IP used when load balacing using the C(fallback_ip) method. description: New fallback IP used when load balancing using the C(fallback_ip) method.
returned: changed returned: changed
type: str type: str
sample: 10.10.10.10 sample: 10.10.10.10

@ -27,7 +27,7 @@ options:
and you intend to use this module in a C(role), it is recommended that you use and you intend to use this module in a C(role), it is recommended that you use
the C({{ role_path }}) variable. An example is provided in the C(EXAMPLES) section. the C({{ role_path }}) variable. An example is provided in the C(EXAMPLES) section.
- When C(state) is C(absent), it is not necessary for the package to exist on the - When C(state) is C(absent), it is not necessary for the package to exist on the
Ansible controller. If the full path to the package is provided, the fileame will Ansible controller. If the full path to the package is provided, the filename will
specifically be cherry picked from it to properly remove the package. specifically be cherry picked from it to properly remove the package.
type: path type: path
state: state:

@ -198,7 +198,7 @@ EXAMPLES = r'''
- type: http_uri - type: http_uri
path_starts_with: /HomePage/ path_starts_with: /HomePage/
- name: Remove all rules and confitions from the rule - name: Remove all rules and conditions from the rule
bigip_policy_rule: bigip_policy_rule:
policy: Policy-Foo policy: Policy-Foo
name: rule1 name: rule1

@ -335,7 +335,7 @@ class ModuleParameters(Parameters):
if 0 <= self._values['syn_rto_base'] <= 5000: if 0 <= self._values['syn_rto_base'] <= 5000:
return self._values['syn_rto_base'] return self._values['syn_rto_base']
raise F5ModuleError( raise F5ModuleError(
"Valid 'syn_rto_base' must be in range 0 - 5000 miliseconds." "Valid 'syn_rto_base' must be in range 0 - 5000 milliseconds."
) )

@ -85,7 +85,7 @@ options:
level provided that there are sufficient resources on the device (such level provided that there are sufficient resources on the device (such
as physical RAM) to support the provisioned module. as physical RAM) to support the provisioned module.
- When C(absent), de-provision the module. - When C(absent), de-provision the module.
- C(absent), is not a relevent option to C(mgmt) module as module can not be de-provisioned. - C(absent), is not a relevant option to C(mgmt) module as module can not be de-provisioned.
type: str type: str
choices: choices:
- present - present

@ -38,7 +38,7 @@ options:
value: value:
description: description:
- Address value, based on type. - Address value, based on type.
If type=fqdn, somthing like www.google.com. If type=fqdn, something like www.google.com.
If type=ipmask, you can use simple ip (192.168.0.1), ip+mask (192.168.0.1 255.255.255.0) or CIDR (192.168.0.1/32). If type=ipmask, you can use simple ip (192.168.0.1), ip+mask (192.168.0.1 255.255.255.0) or CIDR (192.168.0.1/32).
start_ip: start_ip:
description: description:

@ -121,7 +121,7 @@ EXAMPLES = '''
gather_subset: gather_subset:
- fact: 'system_status_select' - fact: 'system_status_select'
- name: gather all pysical interfaces status facts - name: gather all physical interfaces status facts
fortios_facts: fortios_facts:
host: "{{ host }}" host: "{{ host }}"
username: "{{ username }}" username: "{{ username }}"
@ -130,7 +130,7 @@ EXAMPLES = '''
gather_subset: gather_subset:
- fact: 'system_interface_select' - fact: 'system_interface_select'
- name: gather gather all pysical and vlan interfaces status facts - name: gather gather all physical and vlan interfaces status facts
fortios_facts: fortios_facts:
host: "{{ host }}" host: "{{ host }}"
username: "{{ username }}" username: "{{ username }}"

@ -183,7 +183,7 @@ options:
type: int type: int
op: op:
description: description:
- Comparision operater. - Comparison operator.
type: str type: str
choices: choices:
- none - none

@ -24,7 +24,7 @@ ANSIBLE_METADATA = {'status': ['preview'],
DOCUMENTATION = ''' DOCUMENTATION = '''
--- ---
module: fortios_report_theme module: fortios_report_theme
short_description: Report themes configuratio in Fortinet's FortiOS and FortiGate. short_description: Report themes configuration in Fortinet's FortiOS and FortiGate.
description: description:
- This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the - This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the
user to set and modify report feature and theme category. user to set and modify report feature and theme category.

@ -161,8 +161,8 @@ options:
type: str type: str
server_list: server_list:
description: description:
- Additional severs that the FortiGate can use for updates (for AV, IPS, updates) and ratings (for web filter and antispam ratings) - Additional servers that the FortiGate can use for updates (for AV, IPS, updates) and ratings (for web filter and antispam ratings)
servers. servers.
type: list type: list
suboptions: suboptions:
addr_type: addr_type:

@ -120,8 +120,8 @@ options:
suboptions: suboptions:
custom_service: custom_service:
description: description:
- Only sessions using these custom services are synchronized. Use source and destination port ranges to define these custome - Only sessions using these custom services are synchronized. Use source and destination port ranges to define these custom
services. services.
type: list type: list
suboptions: suboptions:
dst_port_range: dst_port_range:

@ -153,7 +153,7 @@ options:
type: int type: int
renew_interval: renew_interval:
description: description:
- Time before lifetime expiraton to send NMMO HA re-registration (5 - 60). - Time before lifetime expiration to send NMMO HA re-registration (5 - 60).
type: int type: int
roaming_interface: roaming_interface:
description: description:
@ -168,7 +168,7 @@ options:
- enable - enable
tunnel_mode: tunnel_mode:
description: description:
- NEMO tunnnel mode (GRE tunnel). - NEMO tunnel mode (GRE tunnel).
type: str type: str
choices: choices:
- gre - gre

@ -209,7 +209,7 @@ options:
type: int type: int
member: member:
description: description:
- Names of users, peers, LDAP severs, or RADIUS servers to add to the user group. - Names of users, peers, LDAP servers, or RADIUS servers to add to the user group.
type: list type: list
suboptions: suboptions:
name: name:

@ -227,7 +227,7 @@ options:
type: int type: int
rsso_endpoint_attribute: rsso_endpoint_attribute:
description: description:
- RADIUS attributes used to extract the user end point identifer from the RADIUS Start record. - RADIUS attributes used to extract the user end point identifier from the RADIUS Start record.
type: str type: str
choices: choices:
- User-Name - User-Name

@ -101,7 +101,7 @@ options:
type: str type: str
status: status:
description: description:
- "Access Point's (AP's) status: rogue, accepted, or supressed." - "Access Point's (AP's) status: rogue, accepted, or suppressed."
type: str type: str
choices: choices:
- rogue - rogue

@ -24,7 +24,7 @@ ANSIBLE_METADATA = {'status': ['preview'],
DOCUMENTATION = ''' DOCUMENTATION = '''
--- ---
module: fortios_wireless_controller_bonjour_profile module: fortios_wireless_controller_bonjour_profile
short_description: Configure Bonjour profiles. Bonjour is Apple's zero configuration networking protocol. Bonjour profiles allow APs and FortiAPs to connnect short_description: Configure Bonjour profiles. Bonjour is Apple's zero configuration networking protocol. Bonjour profiles allow APs and FortiAPs to connect
to networks using Bonjour in Fortinet's FortiOS and FortiGate. to networks using Bonjour in Fortinet's FortiOS and FortiGate.
description: description:
- This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the - This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the
@ -83,7 +83,7 @@ options:
- absent - absent
wireless_controller_bonjour_profile: wireless_controller_bonjour_profile:
description: description:
- Configure Bonjour profiles. Bonjour is Apple's zero configuration networking protocol. Bonjour profiles allow APs and FortiAPs to connnect to - Configure Bonjour profiles. Bonjour is Apple's zero configuration networking protocol. Bonjour profiles allow APs and FortiAPs to connect to
networks using Bonjour. networks using Bonjour.
default: null default: null
type: dict type: dict
@ -146,7 +146,7 @@ EXAMPLES = '''
vdom: "root" vdom: "root"
ssl_verify: "False" ssl_verify: "False"
tasks: tasks:
- name: Configure Bonjour profiles. Bonjour is Apple's zero configuration networking protocol. Bonjour profiles allow APs and FortiAPs to connnect to - name: Configure Bonjour profiles. Bonjour is Apple's zero configuration networking protocol. Bonjour profiles allow APs and FortiAPs to connect to
networks using Bonjour. networks using Bonjour.
fortios_wireless_controller_bonjour_profile: fortios_wireless_controller_bonjour_profile:
host: "{{ host }}" host: "{{ host }}"

@ -52,7 +52,7 @@ options:
check_running_config: check_running_config:
description: description:
- Check running configuration. This can be set as environment variable. - Check running configuration. This can be set as environment variable.
Module will use environment variable value(default:True), unless it is overriden, Module will use environment variable value(default:True), unless it is overridden,
by specifying it as module parameter. by specifying it as module parameter.
type: bool type: bool
default: yes default: yes

@ -184,7 +184,7 @@ options:
check_running_config: check_running_config:
description: description:
- Check running configuration. This can be set as environment variable. - Check running configuration. This can be set as environment variable.
- Module will use environment variable value(default:True), unless it is overriden, by specifying it as module parameter. - Module will use environment variable value(default:True), unless it is overridden, by specifying it as module parameter.
type: bool type: bool
power: power:
description: description:
@ -215,7 +215,7 @@ options:
check_running_config: check_running_config:
description: description:
- Check running configuration. This can be set as environment variable. - Check running configuration. This can be set as environment variable.
- Module will use environment variable value(default:True), unless it is overriden, - Module will use environment variable value(default:True), unless it is overridden,
by specifying it as module parameter. by specifying it as module parameter.
default: yes default: yes
type: bool type: bool

@ -104,7 +104,7 @@ options:
check_running_config: check_running_config:
description: description:
- Check running configuration. This can be set as environment variable. - Check running configuration. This can be set as environment variable.
Module will use environment variable value(default:True), unless it is overriden, by specifying it as module parameter. Module will use environment variable value(default:True), unless it is overridden, by specifying it as module parameter.
type: bool type: bool
state: state:
description: description:
@ -116,7 +116,7 @@ options:
check_running_config: check_running_config:
description: description:
- Check running configuration. This can be set as environment variable. - Check running configuration. This can be set as environment variable.
Module will use environment variable value(default:True), unless it is overriden, by specifying it as module parameter. Module will use environment variable value(default:True), unless it is overridden, by specifying it as module parameter.
type: bool type: bool
default: yes default: yes
""" """

@ -51,7 +51,7 @@ options:
check_running_config: check_running_config:
description: description:
- Check running configuration. This can be set as environment variable. - Check running configuration. This can be set as environment variable.
Module will use environment variable value(default:True), unless it is overriden, by specifying it as module parameter. Module will use environment variable value(default:True), unless it is overridden, by specifying it as module parameter.
type: bool type: bool
default: yes default: yes
aggregate: aggregate:
@ -85,7 +85,7 @@ options:
check_running_config: check_running_config:
description: description:
- Check running configuration. This can be set as environment variable. - Check running configuration. This can be set as environment variable.
Module will use environment variable value(default:True), unless it is overriden, by specifying it as module parameter. Module will use environment variable value(default:True), unless it is overridden, by specifying it as module parameter.
type: bool type: bool
purge: purge:
description: description:

@ -40,7 +40,7 @@ options:
check_running_config: check_running_config:
description: description:
- Check running configuration. This can be set as environment variable. - Check running configuration. This can be set as environment variable.
Module will use environment variable value(default:True), unless it is overriden, by specifying it as module parameter. Module will use environment variable value(default:True), unless it is overridden, by specifying it as module parameter.
type: bool type: bool
default: yes default: yes
state: state:

@ -87,7 +87,7 @@ options:
check_running_config: check_running_config:
description: description:
- Check running configuration. This can be set as environment variable. - Check running configuration. This can be set as environment variable.
Module will use environment variable value(default:True), unless it is overriden, by specifying it as module parameter. Module will use environment variable value(default:True), unless it is overridden, by specifying it as module parameter.
type: bool type: bool
state: state:
description: description:
@ -98,7 +98,7 @@ options:
check_running_config: check_running_config:
description: description:
- Check running configuration. This can be set as environment variable. - Check running configuration. This can be set as environment variable.
Module will use environment variable value(default:True), unless it is overriden, by specifying it as module parameter. Module will use environment variable value(default:True), unless it is overridden, by specifying it as module parameter.
type: bool type: bool
default: yes default: yes
""" """

@ -158,7 +158,7 @@ def parse_ping(ping_stats):
""" """
Function used to parse the statistical information from the ping response. Function used to parse the statistical information from the ping response.
Example: "Success rate is 100 percent (5/5), round-trip min/avg/max=40/51/55 ms." Example: "Success rate is 100 percent (5/5), round-trip min/avg/max=40/51/55 ms."
Returns the percent of packet loss, recieved packets, transmitted packets, and RTT dict. Returns the percent of packet loss, received packets, transmitted packets, and RTT dict.
""" """
if ping_stats.startswith('Success'): if ping_stats.startswith('Success'):
rate_re = re.compile(r"^\w+\s+\w+\s+\w+\s+(?P<pct>\d+)\s+\w+\s+\((?P<rx>\d+)/(?P<tx>\d+)\)") rate_re = re.compile(r"^\w+\s+\w+\s+\w+\s+(?P<pct>\d+)\s+\w+\s+\((?P<rx>\d+)/(?P<tx>\d+)\)")

@ -67,7 +67,7 @@ options:
check_running_config: check_running_config:
description: description:
- Check running configuration. This can be set as environment variable. - Check running configuration. This can be set as environment variable.
Module will use environment variable value(default:True), unless it is overriden, by specifying it as module parameter. Module will use environment variable value(default:True), unless it is overridden, by specifying it as module parameter.
type: bool type: bool
purge: purge:
description: description:
@ -83,7 +83,7 @@ options:
check_running_config: check_running_config:
description: description:
- Check running configuration. This can be set as environment variable. - Check running configuration. This can be set as environment variable.
Module will use environment variable value(default:True), unless it is overriden, by specifying it as module parameter. Module will use environment variable value(default:True), unless it is overridden, by specifying it as module parameter.
type: bool type: bool
default: yes default: yes
""" """

@ -54,7 +54,7 @@ options:
suboptions: suboptions:
type: type:
description: description:
- specifiy the type of the server - specify the type of the server
type: str type: str
choices: ['radius','tacacs'] choices: ['radius','tacacs']
hostname: hostname:
@ -101,7 +101,7 @@ options:
check_running_config: check_running_config:
description: description:
- Check running configuration. This can be set as environment variable. - Check running configuration. This can be set as environment variable.
Module will use environment variable value(default:True), unless it is overriden, by specifying it as module parameter. Module will use environment variable value(default:True), unless it is overridden, by specifying it as module parameter.
type: bool type: bool
default: yes default: yes
""" """

@ -79,7 +79,7 @@ options:
check_running_config: check_running_config:
description: description:
- Check running configuration. This can be set as environment variable. - Check running configuration. This can be set as environment variable.
Module will use environment variable value(default:True), unless it is overriden, by specifying it as module parameter. Module will use environment variable value(default:True), unless it is overridden, by specifying it as module parameter.
type: bool type: bool
name: name:
description: description:
@ -135,7 +135,7 @@ options:
check_running_config: check_running_config:
description: description:
- Check running configuration. This can be set as environment variable. - Check running configuration. This can be set as environment variable.
Module will use environment variable value(default:True), unless it is overriden, by specifying it as module parameter. Module will use environment variable value(default:True), unless it is overridden, by specifying it as module parameter.
type: bool type: bool
default: yes default: yes
""" """

@ -91,7 +91,7 @@ options:
suboptions: suboptions:
type: type:
description: description:
- Specifiy the type of spanning-tree - Specify the type of spanning-tree
type: str type: str
default: 802-1w default: 802-1w
choices: ['802-1w','rstp'] choices: ['802-1w','rstp']
@ -166,7 +166,7 @@ options:
suboptions: suboptions:
type: type:
description: description:
- Specifiy the type of spanning-tree - Specify the type of spanning-tree
type: str type: str
default: 802-1w default: 802-1w
choices: ['802-1w','rstp'] choices: ['802-1w','rstp']
@ -189,7 +189,7 @@ options:
check_running_config: check_running_config:
description: description:
- Check running configuration. This can be set as environment variable. - Check running configuration. This can be set as environment variable.
Module will use environment variable value(default:True), unless it is overriden, by specifying it as module parameter. Module will use environment variable value(default:True), unless it is overridden, by specifying it as module parameter.
type: bool type: bool
associated_interfaces: associated_interfaces:
description: description:
@ -217,7 +217,7 @@ options:
check_running_config: check_running_config:
description: description:
- Check running configuration. This can be set as environment variable. - Check running configuration. This can be set as environment variable.
Module will use environment variable value(default:True), unless it is overriden, by specifying it as module parameter. Module will use environment variable value(default:True), unless it is overridden, by specifying it as module parameter.
type: bool type: bool
default: yes default: yes
""" """

@ -42,7 +42,7 @@ options:
aliases: ['tunnel_type'] aliases: ['tunnel_type']
local_address: local_address:
description: description:
- Literat IP address or hostname corresponding to the tunnel source. - Literal IP address or hostname corresponding to the tunnel source.
required: false required: false
aliases: [ "local" ] aliases: [ "local" ]
remote_address: remote_address:

@ -29,7 +29,7 @@ options:
aliases: [nic] aliases: [nic]
protocol: protocol:
description: description:
- Specifies the procotol for which we want to manage properties. - Specifies the protocol for which we want to manage properties.
required: true required: true
property: property:
description: description:

@ -24,7 +24,7 @@ author: Adam Števko (@xen0l)
options: options:
protocol: protocol:
description: description:
- Specifies the procotol for which we want to manage properties. - Specifies the protocol for which we want to manage properties.
required: true required: true
property: property:
description: description:

@ -386,7 +386,7 @@ return_rowid:
type: list type: list
sample: [1, 3] sample: [1, 3]
download: download:
description: Configuraton database and meta data description: Configuration database and meta data
returned: when C(download) is yes and success returned: when C(download) is yes and success
type: complex type: complex
contains: contains:

@ -365,12 +365,12 @@ before:
description: The configuration as structured data prior to module invocation. description: The configuration as structured data prior to module invocation.
returned: always returned: always
type: list type: list
sample: The configuration returned will alwys be in the same format of the paramters above. sample: The configuration returned will always be in the same format of the parameters above.
after: after:
description: The configuration as structured data after module completion. description: The configuration as structured data after module completion.
returned: when changed returned: when changed
type: list type: list
sample: The configuration returned will alwys be in the same format of the paramters above. sample: The configuration returned will always be in the same format of the parameters above.
commands: commands:
description: The set of commands pushed to the remote device description: The set of commands pushed to the remote device
returned: always returned: always

@ -323,12 +323,12 @@ before:
description: The configuration as structured data prior to module invocation. description: The configuration as structured data prior to module invocation.
returned: always returned: always
type: list type: list
sample: The configuration returned will always be in the same format of the paramters above. sample: The configuration returned will always be in the same format of the parameters above.
after: after:
description: The configuration as structured data after module completion. description: The configuration as structured data after module completion.
returned: when changed returned: when changed
type: list type: list
sample: The configuration returned will always be in the same format of the paramters above. sample: The configuration returned will always be in the same format of the parameters above.
commands: commands:
description: The set of commands pushed to the remote device description: The set of commands pushed to the remote device
returned: always returned: always

@ -403,12 +403,12 @@ before:
description: The configuration as structured data prior to module invocation. description: The configuration as structured data prior to module invocation.
returned: always returned: always
type: list type: list
sample: The configuration returned will alwys be in the same format of the paramters above. sample: The configuration returned will always be in the same format of the parameters above.
after: after:
description: The configuration as structured data after module completion. description: The configuration as structured data after module completion.
returned: when changed returned: when changed
type: list type: list
sample: The configuration returned will alwys be in the same format of the paramters above. sample: The configuration returned will always be in the same format of the parameters above.
commands: commands:
description: The set of commands pushed to the remote device description: The set of commands pushed to the remote device
returned: always returned: always

@ -351,12 +351,12 @@ before:
description: The configuration as structured data prior to module invocation. description: The configuration as structured data prior to module invocation.
returned: always returned: always
type: list type: list
sample: The configuration returned will alwys be in the same format of the paramters above. sample: The configuration returned will always be in the same format of the parameters above.
after: after:
description: The configuration as structured data after module completion. description: The configuration as structured data after module completion.
returned: when changed returned: when changed
type: list type: list
sample: The configuration returned will alwys be in the same format of the paramters above. sample: The configuration returned will always be in the same format of the parameters above.
commands: commands:
description: The set of commands pushed to the remote device description: The set of commands pushed to the remote device
returned: always returned: always

@ -217,12 +217,12 @@ before:
description: The configuration as structured data prior to module invocation. description: The configuration as structured data prior to module invocation.
returned: always returned: always
type: dict type: dict
sample: The configuration returned will alwys be in the same format of the paramters above. sample: The configuration returned will always be in the same format of the parameters above.
after: after:
description: The configuration as structured data after module completion. description: The configuration as structured data after module completion.
returned: when changed returned: when changed
type: dict type: dict
sample: The configuration returned will alwys be in the same format of the paramters above. sample: The configuration returned will always be in the same format of the parameters above.
commands: commands:
description: The set of commands pushed to the remote device description: The set of commands pushed to the remote device
returned: always returned: always

@ -41,7 +41,7 @@ options:
- md5 NTP authentication key of tye 7. - md5 NTP authentication key of tye 7.
key_id: key_id:
description: description:
- auth_key id. Datat type string - auth_key id. Data type string
state: state:
description: description:
- Manage the state of the resource. - Manage the state of the resource.

@ -185,7 +185,7 @@ def parse_ping(ping_stats):
""" """
Function used to parse the statistical information from the ping response. Function used to parse the statistical information from the ping response.
Example: "Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/8 ms" Example: "Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/8 ms"
Returns the percent of packet loss, recieved packets, transmitted packets, and RTT dict. Returns the percent of packet loss, received packets, transmitted packets, and RTT dict.
""" """
rate_re = re.compile(r"^\w+\s+\w+\s+\w+\s+(?P<pct>\d+)\s+\w+\s+\((?P<rx>\d+)/(?P<tx>\d+)\)") rate_re = re.compile(r"^\w+\s+\w+\s+\w+\s+(?P<pct>\d+)\s+\w+\s+\((?P<rx>\d+)/(?P<tx>\d+)\)")
rtt_re = re.compile(r".*,\s+\S+\s+\S+\s+=\s+(?P<min>\d+)/(?P<avg>\d+)/(?P<max>\d+)\s+\w+\s*$|.*\s*$") rtt_re = re.compile(r".*,\s+\S+\s+\S+\s+=\s+(?P<min>\d+)/(?P<avg>\d+)/(?P<max>\d+)\s+\w+\s*$|.*\s*$")

@ -326,12 +326,12 @@ before:
description: The configuration as structured data prior to module invocation. description: The configuration as structured data prior to module invocation.
returned: always returned: always
type: list type: list
sample: The configuration returned will alwys be in the same format of the paramters above. sample: The configuration returned will always be in the same format of the parameters above.
after: after:
description: The configuration as structured data after module completion. description: The configuration as structured data after module completion.
returned: when changed returned: when changed
type: list type: list
sample: The configuration returned will alwys be in the same format of the paramters above. sample: The configuration returned will always be in the same format of the parameters above.
commands: commands:
description: The set of commands pushed to the remote device description: The set of commands pushed to the remote device
returned: always returned: always

@ -390,12 +390,12 @@ before:
description: The configuration as structured data prior to module invocation. description: The configuration as structured data prior to module invocation.
returned: always returned: always
type: list type: list
sample: The configuration returned will alwys be in the same format of the paramters above. sample: The configuration returned will always be in the same format of the parameters above.
after: after:
description: The configuration as structured data after module completion. description: The configuration as structured data after module completion.
returned: when changed returned: when changed
type: list type: list
sample: The configuration returned will alwys be in the same format of the paramters above. sample: The configuration returned will always be in the same format of the parameters above.
commands: commands:
description: The set of commands pushed to the remote device description: The set of commands pushed to the remote device
returned: always returned: always

@ -384,12 +384,12 @@ before:
description: The configuration as structured data prior to module invocation. description: The configuration as structured data prior to module invocation.
returned: always returned: always
type: list type: list
sample: The configuration returned will alwys be in the same format of the paramters above. sample: The configuration returned will always be in the same format of the parameters above.
after: after:
description: The configuration as structured data after module completion. description: The configuration as structured data after module completion.
returned: when changed returned: when changed
type: list type: list
sample: The configuration returned will alwys be in the same format of the paramters above. sample: The configuration returned will always be in the same format of the parameters above.
commands: commands:
description: The set of commands pushed to the remote device description: The set of commands pushed to the remote device
returned: always returned: always

@ -348,7 +348,7 @@ EXAMPLES = """
# #
# #
- name: Overridde all interface LACP configuration with provided configuration - name: Override all interface LACP configuration with provided configuration
iosxr_lacp_interfaces: iosxr_lacp_interfaces:
config: config:
- name: Bundle-Ether12 - name: Bundle-Ether12

@ -74,7 +74,7 @@ options:
- Configures the groups for the username in the device running - Configures the groups for the username in the device running
configuration. The argument accepts a list of group names. configuration. The argument accepts a list of group names.
This argument does not check if the group has been configured This argument does not check if the group has been configured
on the device. It is similar to the aggregrate command for on the device. It is similar to the aggregate command for
usernames, but lets you configure multiple groups for the user(s). usernames, but lets you configure multiple groups for the user(s).
purge: purge:
description: description:

@ -80,7 +80,7 @@ options:
description: List of Interfaces definitions. description: List of Interfaces definitions.
state: state:
description: description:
- State of the Interface configuration, C(up) idicates present and - State of the Interface configuration, C(up) indicates present and
operationally up and C(down) indicates present and operationally C(down) operationally up and C(down) indicates present and operationally C(down)
default: present default: present
choices: ['present', 'absent', 'up', 'down'] choices: ['present', 'absent', 'up', 'down']

@ -34,8 +34,8 @@ options:
all, hardware, config, and interfaces. Can specify a list of all, hardware, config, and interfaces. Can specify a list of
values to include a larger subset. Values can also be used values to include a larger subset. Values can also be used
with an initial C(M(!)) to specify that a specific subset should with an initial C(M(!)) to specify that a specific subset should
not be collected. To maintain backward compatbility old style facts not be collected. To maintain backward compatibility old style facts
can be retrieved by explicilty adding C(ofacts) to value, this reqires can be retrieved by explicitly adding C(ofacts) to value, this requires
junos-eznc to be installed as a prerequisite. Valid value of gather_subset junos-eznc to be installed as a prerequisite. Valid value of gather_subset
are default, hardware, config, interfaces, ofacts. If C(ofacts) is present in the are default, hardware, config, interfaces, ofacts. If C(ofacts) is present in the
list it fetches the old style facts (fact keys without 'ansible_' prefix) and it requires list it fetches the old style facts (fact keys without 'ansible_' prefix) and it requires

@ -182,7 +182,7 @@ EXAMPLES = """
# } # }
# Using overriden # Using overridden
# Before state: # Before state:
# ------------- # -------------
@ -212,7 +212,7 @@ EXAMPLES = """
mtu: 2800 mtu: 2800
- name: ge-0/0/3 - name: ge-0/0/3
description: 'Configured by Ansible-3' description: 'Configured by Ansible-3'
state: overriden state: overridden
# After state: # After state:
# ------------ # ------------

@ -271,7 +271,7 @@ EXAMPLES = """
# } # }
# } # }
# ge-0/0/2 { # ge-0/0/2 {
# description "L3 interface whith ipv6"; # description "L3 interface with ipv6";
# unit 0 { # unit 0 {
# family inet6 { # family inet6 {
# address 2001:db8:3000::/64; # address 2001:db8:3000::/64;

@ -27,7 +27,7 @@ options:
src: src:
description: description:
- The C(src) argument takes a single path, or a list of paths to be - The C(src) argument takes a single path, or a list of paths to be
transfered. The argument C(recursive) must be C(true) to transfer transferred. The argument C(recursive) must be C(true) to transfer
directories. directories.
required: true required: true
dest: dest:

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save