cisco.meraki.meraki_ms_ospf module – Manage OSPF configuration on MS switches
Note
This module is part of the cisco.meraki collection (version 2.15.1).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install cisco.meraki
.
To use it in a playbook, specify: cisco.meraki.meraki_ms_ospf
.
Synopsis
Configure OSPF for compatible Meraki MS switches.
Parameters
Parameter |
Comments |
---|---|
List of areas in OSPF network. |
|
OSPF area ID |
|
Descriptive name of OSPF area. |
|
OSPF area type. Choices:
|
|
Authentication key provided by the dashboard. Required if environmental variable |
|
Time interval to determine when the peer will be declared inactive. Value must be between 1 and 65535. |
|
Enable or disable OSPF on the network. Choices:
|
|
Time interval, in seconds, at which hello packets will be sent to OSPF neighbors to maintain connectivity. Value must be between 1 and 255. Default is 10 seconds. |
|
Hostname for Meraki dashboard. Can be used to access regional Meraki environments, such as China. Default: |
|
Number of seconds to retry if server returns an internal server error. Default: |
|
Whether to enable or disable MD5 authentication. Choices:
|
|
MD5 authentication credentials. |
|
MD5 authentication key index. Must be between 1 and 255. |
|
Plain text authentication passphrase |
|
ID of network containing OSPF configuration. |
|
Name of network containing OSPF configuration. |
|
ID of organization. |
|
Name of organization. |
|
Instructs module whether response keys should be snake case (ex. Choices:
|
|
Set amount of debug output during module execution. Choices:
|
|
Number of seconds to retry if rate limiter is triggered. Default: |
|
Read or edit OSPF settings. Choices:
|
|
Time to timeout for HTTP requests. Default: |
|
If Only useful for internal Meraki developers. Choices:
|
|
If Choices:
|
|
Whether to validate HTTP certificates. Choices:
|
Notes
Note
More information about the Meraki API can be found at https://dashboard.meraki.com/api_docs.
Some of the options are likely only used for developers within Meraki.
As of Ansible 2.9, Meraki modules output keys as snake case. To use camel case, set the
ANSIBLE_MERAKI_FORMAT
environment variable tocamelcase
.Ansible’s Meraki modules will stop supporting camel case output in Ansible 2.13. Please update your playbooks.
Check Mode downloads the current configuration from the dashboard, then compares changes against this download. Check Mode will report changed if there are differences in the configurations, but does not submit changes to the API for validation of change.
Examples
- name: Query OSPF settings
meraki_ms_ospf:
auth_key: abc123
org_name: YourOrg
net_name: YourNet
state: query
delegate_to: localhost
- name: Enable OSPF with check mode
meraki_ms_ospf:
auth_key: abc123
org_name: YourOrg
net_name: YourNet
state: present
enabled: true
hello_timer: 20
dead_timer: 60
areas:
- area_id: 0
area_name: Backbone
area_type: normal
- area_id: 1
area_name: Office
area_type: nssa
md5_authentication_enabled: false
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Information about queried object. Returned: success |
|
List of areas in OSPF network. Returned: success |
|
OSPF area ID Returned: success |
|
Descriptive name of OSPF area. Returned: success |
|
OSPF area type. Returned: success |
|
Time interval to determine when the peer will be declared inactive. Returned: success |
|
Enable or disable OSPF on the network. Returned: success |
|
Time interval, in seconds, at which hello packets will be sent to OSPF neighbors to maintain connectivity. Returned: success |
|
Whether to enable or disable MD5 authentication. Returned: success |
|
MD5 authentication credentials. Returned: success |
|
MD5 key index. Returned: success |
|
Passphrase for MD5 key. Returned: success |