New in version 2.4.
parameter | required | default | choices | comments |
---|---|---|---|---|
bandwidth | no | Specifies the reference bandwidth used to assign ospf cost. Valid values are an integer, in Mbps, 1 - 2147483648, the default value is 100. | ||
description | no | Specifies the description information of ospf process. | ||
lsaaholdinterval | no | Specifies the hold interval of arrive LSA when use the intelligent timer. Valid value is an integer, in millisecond, from 0 to 10000, the default value is 500. | ||
lsaainterval | no | Specifies the interval of arrive LSA when use the general timer. Valid value is an integer, in millisecond, from 0 to 10000. | ||
lsaalflag | no | Specifies the mode of timer to calculate interval of arrive LSA. If set the parameter but not specifies value, the default will be used. If true use general timer. If false use intelligent timer. | ||
lsaamaxinterval | no | Specifies the max interval of arrive LSA when use the intelligent timer. Valid value is an integer, in millisecond, from 0 to 10000, the default value is 1000. | ||
lsaastartinterval | no | Specifies the start interval of arrive LSA when use the intelligent timer. Valid value is an integer, in millisecond, from 0 to 10000, the default value is 500. | ||
lsaoholdinterval | no | Specifies the hold interval of originate LSA . Valid value is an integer, in millisecond, from 0 to 5000, the default value is 1000. | ||
lsaointerval | no | Specifies the interval of originate LSA . Valid value is an integer, in second, from 0 to 10, the default value is 5. | ||
lsaointervalflag | no | Specifies whether cancel the interval of LSA originate or not. If set the parameter but noe specifies value, the default will be used. true:cancel the interval of LSA originate, the interval is 0. false:do not cancel the interval of LSA originate. | ||
lsaomaxinterval | no | Specifies the max interval of originate LSA . Valid value is an integer, in millisecond, from 1 to 10000, the default value is 5000. | ||
lsaostartinterval | no | Specifies the start interval of originate LSA . Valid value is an integer, in millisecond, from 0 to 1000, the default value is 500. | ||
ospf | yes | The ID of the ospf process. Valid values are an integer, 1 - 4294967295, the default value is 1. | ||
route_id | no | Specifies the ospf private route id,. Valid values are a string, formatted as an IP address (i.e. "10.1.1.1") the length is 0 - 20. | ||
spfholdinterval | no | Specifies the hold interval to calculate SPF when use intelligent timer. Valid value is an integer, in millisecond, from 1 to 5000, the default value is 200. | ||
spfinterval | no | Specifies the interval to calculate SPF when use second level timer. Valid value is an integer, in second, from 1 to 10. | ||
spfintervalmi | no | Specifies the interval to calculate SPF when use millisecond level timer. Valid value is an integer, in millisecond, from 1 to 10000. | ||
spfintervaltype | no | intelligent-timer |
| Specifies the mode of timer which used to calculate SPF. If set the parameter but noe specifies value, the default will be used. If is intelligent-timer, then use intelligent timer. If is timer, then use second level timer. If is millisecond, then use millisecond level timer. |
spfmaxinterval | no | Specifies the max interval to calculate SPF when use intelligent timer. Valid value is an integer, in millisecond, from 1 to 20000, the default value is 5000. | ||
spfstartinterval | no | Specifies the start interval to calculate SPF when use intelligent timer. Valid value is an integer, in millisecond, from 1 to 1000, the default value is 50. | ||
state | no | present |
| Specify desired state of the resource. |
vrf | no | _public_ | Specifies the vpn instance which use ospf,length is 1 - 31. Valid values are a string. |
- name: ospf vrf module test hosts: cloudengine connection: local gather_facts: no vars: cli: host: "{{ inventory_hostname }}" port: "{{ ansible_ssh_port }}" username: "{{ username }}" password: "{{ password }}" transport: cli tasks: - name: Configure ospf route id ce_ospf_vrf: ospf: 2 route_id: 2.2.2.2 lsaointervalflag: False lsaointerval: 2 provider: "{{ cli }}"
Common return values are documented here Return Values, the following are the fields unique to this module:
name | description | returned | type | sample |
---|---|---|---|---|
end_state | k/v pairs of configuration after module execution | verbose mode | dict | {'processId': '2', 'vrfName': '_public_', 'description': None, 'bandwidthReference': '100', 'spfScheduleMaxInterval': '10000', 'lsaArrivalHoldInterval': '500', 'lsaOriginateHoldInterval': '1000', 'lsaOriginateInterval': '2', 'lsaOriginateIntervalFlag': 'false', 'spfScheduleHoldInterval': '1000', 'routerId': '2.2.2.2', 'spfScheduleInterval': None, 'spfScheduleStartInterval': '500', 'spfScheduleIntervalType': 'intelligent-timer', 'lsaOriginateMaxInterval': '5000', 'lsaArrivalStartInterval': '500', 'spfScheduleIntervalMillisecond': None, 'lsaArrivalFlag': 'false', 'lsaOriginateStartInterval': '500', 'lsaArrivalInterval': None, 'lsaArrivalMaxInterval': '1000'} |
changed | check to see if a change was made on the device | always | boolean | False |
updates | commands sent to the device | always | list | ['ospf 2'] |
proposed | k/v pairs of parameters passed into module | verbose mode | dict | {'description': None, 'lsaoholdinterval': '1000', 'lsaointerval': '2', 'bandwidth': '100', 'process_id': '2', 'vrf': '_public_', 'lsaaholdinterval': '500', 'lsaointervalflag': 'False', 'lsaomaxinterval': '5000', 'lsaalflag': 'False', 'lsaastartinterval': '500', 'lsaamaxinterval': '1000', 'lsaostartinterval': '500', 'spfintervaltype': 'intelligent-timer', 'lsaainterval': None, 'spfstartinterval': '500', 'route_id': '2.2.2.2', 'spfmaxinterval': '10000', 'spfholdinterval': '1000', 'spfinterval': None, 'spfintervalmi': None} |
existing | k/v pairs of existing configuration | verbose mode | dict | {'processId': '2', 'vrfName': '_public_', 'description': None, 'bandwidthReference': '100', 'spfScheduleMaxInterval': '10000', 'lsaArrivalHoldInterval': '500', 'lsaOriginateHoldInterval': '1000', 'lsaOriginateInterval': '2', 'lsaOriginateIntervalFlag': 'false', 'spfScheduleHoldInterval': '1000', 'routerId': '2.2.2.2', 'spfScheduleInterval': None, 'spfScheduleStartInterval': '500', 'spfScheduleIntervalType': 'intelligent-timer', 'lsaOriginateMaxInterval': '5000', 'lsaArrivalStartInterval': '500', 'spfScheduleIntervalMillisecond': None, 'lsaArrivalFlag': 'false', 'lsaOriginateStartInterval': '500', 'lsaArrivalInterval': None, 'lsaArrivalMaxInterval': '1000'} |
This module is flagged as preview which means that it is not guaranteed to have a backwards compatible interface.
For help in developing on modules, should you be so inclined, please read Community Information & Contributing, Testing Ansible and Developing Modules.
© 2012–2017 Michael DeHaan
© 2017 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/ce_ospf_vrf_module.html