Added in version 1.8
Manage VLAN attributes for Comware 7 devices
parameter | required | default | choices | comments |
---|---|---|---|---|
eg | yes | |||
name | no | Name to configure for the specified VLAN ID | ||
descr | no | Description for the VLAN | ||
port | no | 830 | NETCONF port number | |
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 | ||
state | no | present |
|
Desired state of the vlan |
look_for_keys | no | False | Whether searching for discoverable private key files in ~/.ssh/ |
# ensure VLAN 10-15 exists - comware_vlan: vlanid=10-15 name=VLAN10_WEB descr=LOCALSEGMENT state=present username={{ username }} password={{ password }} hostname={{ inventory_hostname }} # update name and descr - comware_vlan: vlanid=10 name=WEB10 descr=WEBDESCR state=present username={{ username }} password={{ password }} hostname={{ inventory_hostname }} # ensure VLAN 10 does not exist - comware_vlan: vlanid=10 state=absent username={{ username }} password={{ password }} hostname={{ inventory_hostname }}