You are reading an unmaintained version of the Ansible documentation. Unmaintained Ansible versions can contain unfixed security vulnerabilities (CVE). Please upgrade to a maintained version. See the latest Ansible documentation.
ce_link_status - Get interface link status on HUAWEI CloudEngine switches.¶
For the interface parameter, you can enter all to display information about all interface, an interface type such as 40GE to display information about interfaces of the specified type, or full name of an interface such as 40GE1/0/22 or vlanif10 to display information about the specific interface.
-name:Link status testhosts:cloudengineconnection:localgather_facts:novars:cli:host:"{{inventory_hostname}}"port:"{{ansible_ssh_port}}"username:"{{username}}"password:"{{password}}"transport:clitasks:-name:Get specified interface link status informationce_link_status:interface:40GE1/0/1provider:"{{cli}}"-name:Get specified interface type link status informationce_link_status:interface:40GEprovider:"{{cli}}"-name:Get all interface link status informationce_link_status:interface:allprovider:"{{cli}}"