Added in version 1.0
Manage ospf in interface
parameter | required | default | choices | comments |
---|---|---|---|---|
name | yes | full name of interface | ||
ospfname | no | Instance name.(1~65535) | ||
ospfcost | no | Configure the overhead required for the interface to run OSPF | ||
area | no | Specify the OSPF area | ||
simplepwdtype | no |
|
Specify the password type of ospf auth_mode simple | |
simplepwd | no | Specify the password of ospf auth_mode simple | ||
keyid | no | Specify the md5 or hwac-md5 key of ospf auth_mode | ||
md5type | no |
|
Specify the ospf auth_mode md5 type | |
md5pwdtype | no |
|
Specify the password type of ospf auth_mode md5 | |
md5pwd | no | Specify the password of ospf auth_mode md5 | ||
network_type | no |
|
Specify OSPF network type | |
state | no | present |
|
Desired state for the interface configuration |
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 | The Comware port used to connect to the switch | |
look_for_keys | no | False | Whether searching for discoverable private key files in ~/.ssh/ |
# Basic Ethernet config ensure name (interface name) exists in device and the interface support ospf setting. - comware_ospf_intf: name=Ten-GigabitEthernet1/0/7 ospfname=1 area=0 ospfcost=10 network_type=p2p keyid=11 \ md5type=md5 md5pwdtype=plain md5pwd=1 username={{ username }} password={{ password }} hostname={{ inventory_hostname }} - comware_ospf_intf: name=Ten-GigabitEthernet1/0/7 state=default \ username={{ username }} password={{ password }} hostname={{ inventory_hostname }}
Note
The module is used to config interface ospf setting , before using the module , pleaseensure the interface exists and is able to make ospf setting .Interface ospf auth mode can config as simple or md5 , however these two mode can not beset at the same time.Some of the setting must be set together e.g. ospfname must together with area.state default or absent will delete all the ospf settings ,