| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
DOCUMENTATION = r""" |
| 8 |
module: networks_appliance_ports |
| 9 |
short_description: Resource module for networks _appliance _ports |
| 10 |
description: |
| 11 |
- Manage operation update of the resource networks _appliance _ports. |
| 12 |
- Update the per-port VLAN settings for a single MX port. |
| 13 |
version_added: '1.0.0' |
| 14 |
extends_documentation_fragment: |
| 15 |
- cisco.meraki.module |
| 16 |
author: Francisco Munoz (@fmunoz) |
| 17 |
options: |
| 18 |
accessPolicy: |
| 19 |
description: The name of the policy. Only applicable to Access ports. Valid values |
| 20 |
are 'open', '8021x-radius', 'mac-radius', 'hybris-radius' for MX64 or Z3 or |
| 21 |
any MX supporting the per port authentication feature. Otherwise, 'open' is |
| 22 |
the only valid value and 'open' is the default value if the field is missing. |
| 23 |
type: str |
| 24 |
allowedVlans: |
| 25 |
description: Comma-delimited list of the VLAN ID's allowed on the port, or 'all' |
| 26 |
to permit all VLAN's on the port. |
| 27 |
type: str |
| 28 |
dropUntaggedTraffic: |
| 29 |
description: Trunk port can Drop all Untagged traffic. When true, no VLAN is required. |
| 30 |
Access ports cannot have dropUntaggedTraffic set to true. |
| 31 |
type: bool |
| 32 |
enabled: |
| 33 |
description: The status of the port. |
| 34 |
type: bool |
| 35 |
networkId: |
| 36 |
description: NetworkId path parameter. Network ID. |
| 37 |
type: str |
| 38 |
portId: |
| 39 |
description: PortId path parameter. Port ID. |
| 40 |
type: str |
| 41 |
type: |
| 42 |
description: The type of the port 'access' or 'trunk'. |
| 43 |
type: str |
| 44 |
vlan: |
| 45 |
description: Native VLAN when the port is in Trunk mode. Access VLAN when the |
| 46 |
port is in Access mode. |
| 47 |
type: int |
| 48 |
requirements: |
| 49 |
- meraki >= 2.4.9 |
| 50 |
- python >= 3.5 |
| 51 |
seealso: |
| 52 |
- name: Cisco Meraki documentation for appliance updateNetworkAppliancePort |
| 53 |
description: Complete reference of the updateNetworkAppliancePort API. |
| 54 |
link: https://developer.cisco.com/meraki/api-v1/#!update-network-appliance-port |
| 55 |
notes: |
| 56 |
- SDK Method used are |
| 57 |
appliance.Appliance.update_network_appliance_port, |
| 58 |
- Paths used are |
| 59 |
put /networks/{networkId}/appliance/ports/{portId}, |
| 60 |
""" |
| 61 |
|
| 62 |
EXAMPLES = r""" |
| 63 |
- name: Update by id |
| 64 |
cisco.meraki.networks_appliance_ports: |
| 65 |
meraki_api_key: "{{ meraki_api_key }}" |
| 66 |
meraki_base_url: "{{ meraki_base_url }}" |
| 67 |
meraki_single_request_timeout: "{{ meraki_single_request_timeout }}" |
| 68 |
meraki_certificate_path: "{{ meraki_certificate_path }}" |
| 69 |
meraki_requests_proxy: "{{ meraki_requests_proxy }}" |
| 70 |
meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}" |
| 71 |
meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}" |
| 72 |
meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}" |
| 73 |
meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}" |
| 74 |
meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}" |
| 75 |
meraki_maximum_retries: "{{ meraki_maximum_retries }}" |
| 76 |
meraki_output_log: "{{ meraki_output_log }}" |
| 77 |
meraki_log_file_prefix: "{{ meraki_log_file_prefix }}" |
| 78 |
meraki_log_path: "{{ meraki_log_path }}" |
| 79 |
meraki_print_console: "{{ meraki_print_console }}" |
| 80 |
meraki_suppress_logging: "{{ meraki_suppress_logging }}" |
| 81 |
meraki_simulate: "{{ meraki_simulate }}" |
| 82 |
meraki_be_geo_id: "{{ meraki_be_geo_id }}" |
| 83 |
meraki_caller: "{{ meraki_caller }}" |
| 84 |
meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}" |
| 85 |
meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}" |
| 86 |
state: present |
| 87 |
accessPolicy: open |
| 88 |
allowedVlans: all |
| 89 |
dropUntaggedTraffic: false |
| 90 |
enabled: true |
| 91 |
networkId: string |
| 92 |
portId: string |
| 93 |
type: access |
| 94 |
vlan: 3 |
| 95 |
""" |
| 96 |
RETURN = r""" |
| 97 |
meraki_response: |
| 98 |
description: A dictionary or list with the response returned by the Cisco Meraki Python SDK |
| 99 |
returned: always |
| 100 |
type: dict |
| 101 |
sample: > |
| 102 |
{ |
| 103 |
"number": 0, |
| 104 |
"enabled": true, |
| 105 |
"type": "string", |
| 106 |
"dropUntaggedTraffic": true, |
| 107 |
"vlan": 0, |
| 108 |
"allowedVlans": "string", |
| 109 |
"accessPolicy": "string" |
| 110 |
} |
| 111 |
""" |