W3cubDocs

/Ansible 2.10

community.network.ce_is_is_interface – Manages isis interface configuration on HUAWEI CloudEngine devices.

Note

This plugin is part of the community.network collection.

To install it use: ansible-galaxy collection install community.network.

To use it in a playbook, specify: community.network.ce_is_is_interface.

New in version 0.2.0: of community.network

Synopsis

  • Manages isis process id, creates a isis instance id or deletes a process id on HUAWEI CloudEngine devices.

Parameters

Parameter Choices/Defaults Comments
bfdblocken
boolean
    Choices:
  • no
  • yes
Blocking interfaces to dynamically create BFD features. The value is a bool type.
bfdstaticen
boolean
    Choices:
  • no
  • yes
Configure static BFD on a specific interface enabled with ISIS. The value is a bool type.
ifname
string / required
A L3 interface.
instance_id
integer / required
Specifies the id of a isis process. The value is a number of 1 to 4294967295.
level1cost
integer
Specifies the link cost of the interface when performing Level-1 SPF calculation. The value is a number of 0 to 16777215.
level1dispriority
integer
the dispriority of the level1. The value is a number of 1 to 127.
level2cost
integer
Specifies the link cost of the interface when performing Level-2 SPF calculation. The value is a number of 0 to 16777215.
level2dispriority
integer
the dispriority of the level1. The value is a number of 1 to 127.
leveltype
string
    Choices:
  • level_1
  • level_2
  • level_1_2
level type for three types.
p2pnegotiationmode
string
    Choices:
  • 2_way
  • 3_way
  • 3_wayonly
Set the P2P neighbor negotiation type.
p2ppeeripignore
boolean
    Choices:
  • no
  • yes
When the P2P hello packet is received, no IP address check is performed. The value is a bool type.
ppposicpcheckenable
boolean
    Choices:
  • no
  • yes
Interface for setting PPP link protocol to check OSICP negotiation status. The value is a bool type.
silentcost
boolean
    Choices:
  • no
  • yes
Specifies whether the routing cost of the silent interface is 0. The value is a bool type.
silentenable
boolean
    Choices:
  • no
  • yes
enable the interface can send isis message. The value is a bool type.
snpacheck
boolean
    Choices:
  • no
  • yes
Enable SNPA check for LSPs and SNPs. The value is a bool type.
state
string
    Choices:
  • present
  • absent
Determines whether the config should be present or not on the device.
typep2penable
boolean
    Choices:
  • no
  • yes
Simulate the network type of the interface as P2P. The value is a bool type.

Notes

Note

  • Interface must already be a L3 port when using this module.
  • This module requires the netconf system service be enabled on the remote device being managed.
  • This module works with connection netconf.

Examples

- name: "create vlan and config vlanif"
  ce_config:
    lines: 'vlan {{ test_vlan_id }},quit,interface {{test_intf_vlanif}},ip address {{test_vlanif_ip}} 24'
    match: none

- name: "create eth-trunk and config eth-trunk"
  ce_config:
    lines: 'interface {{test_intf_trunk}},undo portswitch,ip address {{test_trunk_ip}} 24'
    match: none

- name: "create vpn instance"
  ce_config:
    lines: 'ip vpn-instance {{test_vpn}},ipv4-family'
    match: none

- name: Set isis circuit-level
  community.network.ce_is_is_interface:
    instance_id: 3
    ifname: Eth-Trunk10
    leveltype: level_1_2
    state: present

- name: Set isis level1dispriority
  community.network.ce_is_is_interface:
    instance_id: 3
    ifname: Eth-Trunk10
    level1dispriority: 0
    state: present

- name: Set isis level2dispriority
  community.network.ce_is_is_interface:
    instance_id: 3
    ifname: Eth-Trunk10
    level2dispriority: 0
    state: present

- name: Set isis silentenable
  community.network.ce_is_is_interface:
    instance_id: 3
    ifname: Eth-Trunk10
    silentenable: true
    state: present

- name: Set vpn name
  ce_is_is_instance:
    instance_id: 22
    vpn_name: vpn1
    state: present

Return Values

Common return values are documented here, the following are the fields unique to this module:

Key Returned Description
changed
boolean
always
check to see if a change was made on the device

Sample:
True
end_state
dictionary
always
k/v pairs of configuration after module execution

Sample:
{'session': {'addrType': 'IPV4', 'createType': 'SESS_STATIC', 'destAddr': None, 'outIfName': '10GE1/0/1', 'sessName': 'bfd_l2link', 'srcAddr': None, 'useDefaultIp': 'true', 'vrfName': None}}
existing
dictionary
always
k/v pairs of existing configuration

Sample:
{'session': {}}
proposed
dictionary
always
k/v pairs of parameters passed into module

Sample:
{'addr_type': None, 'create_type': None, 'dest_addr': None, 'out_if_name': '10GE1/0/1', 'session_name': 'bfd_l2link', 'src_addr': None, 'state': 'present', 'use_default_ip': True, 'vrf_name': None}
updates
list / elements=string
always
commands sent to the device

Sample:
['bfd bfd_l2link bind peer-ip default-ip interface 10ge1/0/1']


Authors

  • xuxiaowei0512 (@CloudEngine-Ansible)

© 2012–2018 Michael DeHaan
© 2018–2019 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.10/collections/community/network/ce_is_is_interface_module.html