Skip to content

Latest commit

 

History

History
138 lines (114 loc) · 6.01 KB

comware_interface_module.rst

File metadata and controls

138 lines (114 loc) · 6.01 KB

comware_interface

Added in version 1.8

Manage administrative state and physical attributes of the interface

parameter required default choices comments
name yes Full name of the interface
admin no up
  • up
  • down
Admin state of the interface
admin no Admin state of the interfaceSingle line description for the interface
type no
  • bridged
  • routed
Type of interface, i.e. L2 or L3
duplex no
  • auto
  • full
Duplex of the interface
speed no Speed of the interface in Mbps
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 Ethernet config
- comware_interface: name=FortyGigE1/0/5 admin=up description=mydesc duplex=auto speed=40000 username={{ username }} password={{ password }} hostname={{ inventory_hostname }}
- comware_interface: name=hun1/0/26.1 type=routed state=present username={{ username }} password={{ password }} hostname={{ inventory_hostname }}

Note

Only logical interfaces can be removed with state=absent.If you want to configure type (bridged or routed),run this module first with no other interface parameters.Then, remove the type parameter and include the other desired parameters.When the type parameter is given, other parameters are defaulted.When state is set to default, the interface will be "defaulted"regardless of what other parameters are entered.When state is set to default, the interface must already exist.When state is set to absent, logical interfaces will be removedfrom the switch, while physical interfaces will be "defaulted"Tunnel interface creation and removal is not currently supported.