Ansible Module for non CloudEngine Switches

Created: Apr 3, 2019 11:43:20Latest reply: Apr 5, 2019 02:43:37 353 4 0 0
  Rewarded Hi-coins: 0 (problem resolved)

Hi all

is there an Ansible module to configure or get infromations from a non CloudEngine Switch like S5720?

Im looking for a module like the Cisco ios_facts.


Thanks for any help

Lars

  • x
  • convention:

Featured Answers
chenhui
Admin Created Apr 5, 2019 02:41:36 Helpful(0) Helpful(0)

cause the S series switch and CE series swith both based on the VRP platform, and there are modules for the CE switch, so, I think you can try it with the CE module.
  • x
  • convention:

All Answers
Oussema
Oussema Created Apr 3, 2019 12:59:06 Helpful(0) Helpful(0)

There are no device-specific modules for that device, but that device can be configured from the command line, so you can use the Ansible CLI modules:
 
  • cli_command – Run a cli command on cli-based network devices
(https://docs.ansible.com/ansible/devel/modules/cli_command_module.html#cli-command-module)

  • cli_command – Run a cli command on cli-based network devices
(https://docs.ansible.com/ansible/devel/modules/cli_config_module.html#cli-config-module)


  • x
  • convention:

user_3362717
user_3362717 Created Apr 3, 2019 15:36:54 Helpful(0) Helpful(0)

I have tried it with this but I did not get it to work. with this module you have to set the ansible_connection to network_cli and you have to set the ansible_network_os variable but for huawei there is no option. do you have any working playbook?
  • x
  • convention:

chenhui
chenhui Admin Created Apr 5, 2019 02:41:36 Helpful(0) Helpful(0)

cause the S series switch and CE series swith both based on the VRP platform, and there are modules for the CE switch, so, I think you can try it with the CE module.
  • x
  • convention:

chenhui
chenhui Admin Created Apr 5, 2019 02:43:37 Helpful(0) Helpful(0)

by the way, since I never used Ansible before, so, this is just a advise, and I think it's better to contact with the Ansible support or community. maybe they can provide a more useful advise.
  • x
  • convention:

Comment

Reply
You need to log in to reply to the post Login | Register

Notice Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " Privacy."
If the attachment button is not available, update the Adobe Flash Player to the latest version!
Login and enjoy all the member benefits

Login and enjoy all the member benefits

Login