ansible-collections / cisco.ios

Ansible Network Collection for Cisco IOS
GNU General Public License v3.0
293 stars 171 forks source link

ios_bgp_address_family : Override provided BGP address family configuration Invalid input detected #726

Closed brahmanim closed 1 year ago

brahmanim commented 1 year ago
SUMMARY

The integration test gets an error Invalid input detected when running the task Override provided BGP address family configuration, Runs from controller with EE minimal base image.

ISSUE TYPE
COMPONENT NAME

cisco.ios.ios_bgp_address_family

ANSIBLE VERSION
2.14
COLLECTION VERSION
cisco.ios 4.3.0
CONFIGURATION
None
OS / ENVIRONMENT
ios-smoke-diff>show version 
Cisco IOS XE Software, Version 17.06.02
Cisco IOS Software [Bengaluru], Virtual XE Software (X86_64_LINUX_IOSD-UNIVERSALK9-M), Version 17.6.2, RELEASE SOFTWARE (fc7)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2021 by Cisco Systems, Inc.
Compiled Tue 23-Nov-21 12:48 by mcpre

Cisco IOS-XE software, Copyright (c) 2005-2021 by cisco Systems, Inc.
All rights reserved.  Certain components of Cisco IOS-XE software are
licensed under the GNU General Public License ("GPL") Version 2.0.  The
software code licensed under GPL Version 2.0 is free software that comes
with ABSOLUTELY NO WARRANTY.  You can redistribute and/or modify such
GPL code under the terms of GPL Version 2.0.  For more details, see the
documentation or "License Notice" file accompanying the IOS-XE software,
or the applicable URL provided on the flyer accompanying the IOS-XE
software.

ROM: IOS-XE ROMMON

ios-smoke-diff uptime is 5 weeks, 3 days, 19 hours, 6 minutes
Uptime for this control processor is 5 weeks, 3 days, 19 hours, 7 minutes
System returned to ROM by reload
System image file is "bootflash:packages.conf"
Last reload reason: reload

This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.

A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html

If you require further assistance please contact us by sending email to
export@cisco.com.

License Level: 
License Type: Perpetual
Next reload license Level: 

Addon License Level: 
Addon License Type: Subscription
Next reload addon license Level: 

The current throughput level is 10000 kbps 

Smart Licensing Status: Registration Not Applicable/Not Applicable

cisco C8000V (VXE) processor (revision VXE) with 2257609K/3075K bytes of memory.
Processor board ID 93WF9G05F7U
Router operating mode: Autonomous
4 Gigabit Ethernet interfaces
32768K bytes of non-volatile configuration memory.
8087308K bytes of physical memory.
5234688K bytes of virtual hard disk at bootflash:.

Configuration register is 0x2102
STEPS TO REPRODUCE
Run integration test, gets an error `Invalid input detected` when running the task [Override provided BGP address family configuration](https://github.com/ansible-collections/cisco.ios/blob/0174e4c94e9384b1b29503ca99681fff00c1de98/tests/integration/targets/ios_bgp_address_family/tests/cli/overridden.yaml#L9)
EXPECTED RESULTS

The task passed with no error

ACTUAL RESULTS
TASK [/usr/share/ansible/collections/ansible_collections/cisco/ios/tests/integration/targets/ios_bgp_address_family : Override provided BGP address family configuration] ***
task path: /usr/share/ansible/collections/ansible_collections/cisco/ios/tests/integration/targets/ios_bgp_address_family/tests/cli/overridden.yaml:9
fatal: [10.0.205.140]: FAILED! => {
    "changed": false,
    "module_stderr": "network 2001:DB8:0:3::/64 route-map test_ipv6\\r\\nnetwork 2001:DB8:0:3::/64 route-map test_ipv6\\r\\n           ^\\r\\n% Invalid input detected at '^' marker.\\r\\n\\r\\nios-smoke-diff(config-router)#",
    "module_stdout": "",
    "msg": "MODULE FAILURE\\nSee stdout/stderr for the exact error"
}
trishnaguha commented 1 year ago

This depends on https://github.com/ansible-collections/cisco.ios/issues/719

KB-perByte commented 1 year ago

Hey @brahmanim this issue is dependent on https://github.com/ansible-collections/cisco.ios/issues/719, the fix with be released soon! Regards