Ansible Module for non CloudEngine Switches

Created Apr 03, 2019 19:43:20Latest reply Apr 05, 2019 10:43:37 96 4 0 0
  Rewarded E 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:

chenhui  Admin   Created Apr 05, 2019 10: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:

Oussema     Created Apr 03, 2019 20: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     Created Apr 03, 2019 23: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  Admin   Created Apr 05, 2019 10: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:

Responses

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

Notice:To ensure 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 not limited to politically sensitive content, content concerning pornography, gambling, drug abuse and trafficking, content that may disclose or infringe upon others' intellectual properties, including commercial secrets, 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 Policy.”
If the attachment button is not available, update the Adobe Flash Player to the latest version!
Fast reply Scroll to top