Added in version 1.0
Manage output rules for log information on V7 devices
parameter | required | default | choices | comments |
---|---|---|---|---|
channelID | yes |
|
Specifies syslog output destination | |
channelName | yes | Specifies a module by its name. | ||
level | no |
|
A log output rule specifies the source modules and severity level of logs that can be output to a destination. Logs matching the output rule are output to the destination. | |
state | no | present |
|
Desired state of the switchport |
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/ |
# basic config - comware_log_source: channelID=1 channelName=ARP level=critical username={{ username }} password={{ password }} hostname={{ inventory_hostname }} # delete config - comware_log_source: channelID=1 channelName=ARP level=critical state=absent username={{ username }} password={{ password }} hostname={{ inventory_hostname }}
Note
If state=default, the config will be removed