ansible / ansible.builtin / v2.5.15 / module / ce_interface_ospf Manages configuration of an OSPF interface instanceon HUAWEI CloudEngine switches. | "added in version" 2.4 of ansible.builtin" Authors: QijunPan (@CloudEngine-Ansible) preview | supported by communityansible.builtin.ce_interface_ospf (v2.5.15) — module
pip
Install with pip install ansible==2.5.15
Manages configuration of an OSPF interface instanceon HUAWEI CloudEngine switches.
- name: eth_trunk 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: Enables OSPF and sets the cost on an interface ce_interface_ospf: interface: 10GE1/0/30 process_id: 1 area: 100 cost: 100 provider: '{{ cli }}' - name: Sets the dead interval of the OSPF neighbor ce_interface_ospf: interface: 10GE1/0/30 process_id: 1 area: 100 dead_interval: 100 provider: '{{ cli }}' - name: Sets the interval for sending Hello packets on an interface ce_interface_ospf: interface: 10GE1/0/30 process_id: 1 area: 100 hello_interval: 2 provider: '{{ cli }}' - name: Disables an interface from receiving and sending OSPF packets ce_interface_ospf: interface: 10GE1/0/30 process_id: 1 area: 100 silent_interface: true provider: '{{ cli }}'
area: description: - Ospf area associated with this ospf process. Valid values are a string, formatted as an IP address (i.e. "0.0.0.0") or as an integer between 1 and 4294967295. required: true cost: default: null description: - The cost associated with this interface. Valid values are an integer in the range from 1 to 65535. required: false state: choices: - present - absent default: present description: - Determines whether the config should be present or not on the device. required: false auth_mode: choices: - none - 'null' - hmac-sha256 - md5 - hmac-md5 - simple default: null description: - Specifies the authentication type. required: false interface: description: - Full name of interface, i.e. 40GE1/0/10. required: true process_id: description: - Specifies a process ID. The value is an integer ranging from 1 to 4294967295. required: true auth_key_id: default: null description: - Authentication key id when C(auth_mode) is 'hmac-sha256', 'md5' or 'hmac-md5. Valid value is an integer is in the range from 1 to 255. required: false auth_text_md5: default: null description: - Specifies a password for MD5, HMAC-MD5, or HMAC-SHA256 authentication. The value is a string of 1 to 255 case-sensitive characters, spaces not supported. required: false dead_interval: default: null description: - Time interval an ospf neighbor waits for a hello packet before tearing down adjacencies. Valid values are an integer in the range from 1 to 235926000. required: false hello_interval: default: null description: - Time between sending successive hello packets. Valid values are an integer in the range from 1 to 65535. required: false auth_text_simple: default: null description: - Specifies a password for simple authentication. The value is a string of 1 to 8 characters. required: false silent_interface: default: false description: - Setting to true will prevent this interface from receiving HELLO packets. Valid values are 'true' and 'false'. required: false
changed: description: check to see if a change was made on the device returned: always sample: true type: boolean end_state: description: k/v pairs of configuration after module execution returned: verbose mode sample: area: 0.0.0.100 auth_mode: none cost: '100' dead_interval: '40' hello_interval: '10' interface: 10GE1/0/30 process_id: '1' silent_interface: 'false' type: dict existing: description: k/v pairs of existing configuration returned: verbose mode sample: area: 0.0.0.100 process_id: '1' type: dict proposed: description: k/v pairs of parameters passed into module returned: verbose mode sample: area: 0.0.0.100 cost: '100' interface: 10GE1/0/30 process_id: '1' type: dict updates: description: commands sent to the device returned: always sample: - interface 10GE1/0/30 - ospf enable 1 area 0.0.0.100 - ospf cost 100 type: list