Code Exchange

Ask questions about your Developer Code Exchange submissions
cancel
Showing results for 
Search instead for 
Did you mean: 
cancel

Forum Posts

Hello,I wanted to create a condition to execute only an ios command when it is part of previous output of "sh run | sec eigrp".It works to remove the eigrp process, but it skippes the removal of route-map, though it is part of output.Please see outpu...

Netmart by Level 7
  • 1910 Views
  • 3 replies
  • 0 Helpful votes

Hello,I wanted to print only one message when show run | eigrp output does contain "eigrp".However, print result is skipped. Please advise.ThanksLike:---- name: EIGRP Config Check   hosts: iosxe  vars_files:         - /home/cisco/Ansible/vault_passwo...

Netmart by Level 7
  • 2741 Views
  • 6 replies
  • 1 Helpful votes

Hello,I wanted to save changes in running config by using the "save_when" parameter:---- name: Test Ansible ios_command on Cisco IOS XE  hosts: iosxe  vars_files:         - /home/cisco/Ansible/vault_password2.yml  vars:      ansible_become_pass: "{{ ...

Netmart by Level 7
  • 2606 Views
  • 1 replies
  • 0 Helpful votes

  Hello,I am wondering about the syntax when adding or removing parameters for example removing a redistribution list under the BGP Process / Address Family IP4 - see example below.Thanks,  tasks:     - name: no router eigrp       ios_config:        ...

Netmart by Level 7
  • 9998 Views
  • 6 replies
  • 0 Helpful votes

Hello, When running the script as shown below I do receive the following error.And I am using the same API, "dnac.devices.get_all_interfaces()['response']"  in different script without issues.Therefore, I assume that it must have to do with line of: ...

Netmart by Level 7
  • 1245 Views
  • 1 replies
  • 0 Helpful votes

Hello,To my understanding, the output will be printed on the screen.I would like save it under a log file.I tried to add it to ansible.cfg file, but still I am not able to see the log file:[default]#some basic default values...nocows=true#log_path=/e...

Netmart by Level 7
  • 4130 Views
  • 6 replies
  • 0 Helpful votes

Hello,In order to run the following script, I assume it is required to install the YDK repository to be able to import the ydk modules as listed below.Please advise. Thanks,Netmart from ydk.services import CRUDServicefrom ydk.providers import Netconf...

Netmart by Level 7
  • 823 Views
  • 1 replies
  • 0 Helpful votes

In this space, you can share your questions, experiences, and feelings about the Code Exchange platform. Also, you can ask regarding the usage and submitting open-source projects and reviewing pipelines and features.   The Cisco Code Exchange provide...

Oleksii_ by Cisco Employee
  • 1085 Views
  • 0 replies
  • 3 Helpful votes