Skip to content

Latest commit

 

History

History
143 lines (117 loc) · 5.56 KB

comware_iface_stp_module.rst

File metadata and controls

143 lines (117 loc) · 5.56 KB

comware_iface_stp

Added in version 1.8

Manage stp config in interface

parameter required default choices comments
name yes Full name of the interface
edgedport no Specify edge port
loop no Specify loop protection
root no Specify root protection
tc_restriction no Restrict propagation of TC message
transimit_limit no Specify transmission limit count
state no present
  • present
  • absent
  • default
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 interface stp config
- comware_iface_stp:  name=Ten-GigabitEthernet1/0/7 tc_restriction=true transimit_limit=200 username={{ username }} password={{ password }} hostname={{ inventory_hostname }}

# Delete interface stp config
- comware_iface_stp:  name=Ten-GigabitEthernet1/0/7  state=default username={{ username }} password={{ password }} hostname={{ inventory_hostname }}

# Interface stp full configuration
- comware_iface_stp:  name=HundredGigE1/0/25 edgedport=true root=true tc_restriction=true transimit_limit=200   username={{ username }} password={{ password }} hostname={{ inventory_hostname }}

Note

stp interface configs must be setting in l2 ethernet mode .loop protect is conflict with edgeport and root protect , while loop protectexists , edgeport and root protect can not be setted , vice versa.