Added in version 1.8
Manage IRF port creation and removal for Comware v7 devices
parameter | required | default | choices | comments |
---|---|---|---|---|
member_id | yes | IRF member id for switch (must be unique). IRF member ids can be configured with the comware_irf_members module. | ||
irf_p1 | yes | Physical Interface or List of Physical Interfaces that will be bound to IRF port 1. Any physical interfaces not in the list will be removed from the IRF port. An empty list removes all interfaces. | ||
irf_p2 | yes | Physical Interface or List of Physical Interfaces that will be bound to IRF port 2. Any physical interfaces not in the list will be removed from the IRF port. An empty list removes all interfaces. | ||
filename | no | startup.cfg | Where to save the current configuration. Default is startup.cfg. | |
activate | no | true |
|
activate the IRF after the configuration is initially performed |
removal_override | no | false |
|
When set to true, allows the removal of physical ports from IRF port(s). Removing physical ports may have adverse effects and be disallowed by the switch. Disconnecting all IRF ports could lead to a split-brain scenario. |
hostname | yes | IP Address or hostname of the Comware v7 device that has NETCONF enabled | ||
username | yes | Username used to login to the switch | ||
password | yes | Password used to login to the switch | ||
port | no | 830 | NETCONF port number | |
look_for_keys | no | False | Whether searching for discoverable private key files in ~/.ssh/ |
# irf ports - comware_irf_ports: member_id: 1 irf_p1: - FortyGigE1/0/1 - FortyGigE1/0/3 irf_p2: FortyGigE1/0/2 username: "{{ username }}" password: "{{ password }}" hostname: "{{ inventory_hostname }}" removal_override: yes
Note
This module is meant to be run after the comware_irf_members module.The process is as follows 1) Use comware_irf_members to changethe IRF member identity of the device, with the reboot=trueflag, or reboot the device through some other means. 2) Usecomware_irf_members to change priority, description, and domain,if desired. 3) Use the comware_irf_ports module to create IRF portto physical port bindings, and set activate=true to activate theIRF. If IRF neighbors are already configured, the IRF will beformed, some devices may reboot.Any physical interfaces not in an interface list (irf_p1 or irf_p2) willbe removed from the IRF port. An empty list removes all interfaces.If an IRF is succesfully created, the non-master members will no longerbe accessible through their management interfaces.