Guest

Preview Tool

Cisco Bug: CSCvi20350 - 7.1.1: external-executable-nimo fails when argv has single quotes

Last Modified

Oct 01, 2018

Products (1)

  • Cisco WAN Automation Engine (WAE)

Known Affected Releases

7.1.1

Description (partial)

Symptom:
External-executable-nimo fails when argv has single quotes:
- Configure NIMO:
 nimo external-executable-nimo advanced input-file-format txt
 nimo external-executable-nimo advanced argv "/opt/cariden/waenso/waensoinstall/bin/login_find_igp_db -igp-protocol ospf -ospf-area 0 -seed-router 192.168.100.187 -out-file $$output -log-file /opt/cariden/software/mate/current/bin/login_find_igp_db.log -verbosity 30"
!
networks network 172_myAS185_500b_external-executable-nimo_insert_ip_manage
 nimo external-executable-nimo source-network 172_myAS185_500a_external-executable-nimo_login_find_igp_db
 nimo external-executable-nimo advanced argv "/opt/cariden/waenso/waensoinstall/bin/tab_merger -tab-file-1 $$input -tab-file-2 /opt/cariden/etc/ipmanage.txt -key-1 'IPAddress<Nodes>IPManage' -key-2 'IPAddress<Nodes>IPManage' -merge-mode pull -compare-method equality -out-file $$output -log-file /opt/cariden/myws/tab_merger.log"
!

- Run NIMO:
admin@wae# networks network 172_myAS185_500a_external-executable-nimo_login_find_igp_db nimo external-executable-nimo run
status true
message Changes successfully applied.
admin@wae#
admin@wae# networks network 172_myAS185_500b_external-executable-nimo_insert_ip_manage nimo external-executable-nimo run

- Note that 172_myAS185_500b_external-executable-nimo_insert_ip_manage fails when single quotes are in argv:
tail -f /opt/cariden/myws/tab_merger.log
Error [10]: ''IPAddress' is not a valid column of section '<Nodes>' in tab-file-1

- It passes when single quotes are removed:
networks network 172_myAS185_500b_external-executable-nimo_insert_ip_manage
 nimo external-executable-nimo advanced argv "/opt/cariden/waenso/waensoinstall/bin/tab_merger -tab-file-1 $$input -tab-file-2 /opt/cariden/etc/ipmanage.txt -key-1 IPAddress<Nodes>IPManage -key-2 IPAddress<Nodes>IPManage -merge-mode pull -compare-method equality -out-file $$output -log-file /opt/cariden/myws/tab_merger.log"
!

Conditions:
Condition:
7.1.1: external-executable-nimo fails when argv has single quotes:
- Configure NIMO:
 nimo external-executable-nimo advanced input-file-format txt
 nimo external-executable-nimo advanced argv "/opt/cariden/waenso/waensoinstall/bin/login_find_igp_db -igp-protocol ospf -ospf-area 0 -seed-router 192.168.100.187 -out-file $$output -log-file /opt/cariden/software/mate/current/bin/login_find_igp_db.log -verbosity 30"
!
networks network 172_myAS185_500b_external-executable-nimo_insert_ip_manage
 nimo external-executable-nimo source-network 172_myAS185_500a_external-executable-nimo_login_find_igp_db
 nimo external-executable-nimo advanced argv "/opt/cariden/waenso/waensoinstall/bin/tab_merger -tab-file-1 $$input -tab-file-2 /opt/cariden/etc/ipmanage.txt -key-1 'IPAddress<Nodes>IPManage' -key-2 'IPAddress<Nodes>IPManage' -merge-mode pull -compare-method equality -out-file $$output -log-file /opt/cariden/myws/tab_merger.log"
!
Bug details contain sensitive information and therefore require a Cisco.com account to be viewed.

Bug Details Include

  • Full Description (including symptoms, conditions and workarounds)
  • Status
  • Severity
  • Known Fixed Releases
  • Related Community Discussions
  • Number of Related Support Cases
Bug information is viewable for customers and partners who have a service contract. Registered users can view up to 200 bugs per month without a service contract.