You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a large fleet of Cisco and Arista switches and we have noticed there is a difference in the way the vendor OS's handle tagged VLAN's on an interface. In Arista you can add as many as you like and it will stay as a single string in the config. Cisco on the other hand splits the VLAN's onto multiple lines based on a character count (48 including , unless the list would be split over 3 lines then it's splits on 41 and 43 characters).
(Place an x between the square brackets where applicable)
Yes
[] No
Setup
napalm version
(Paste verbatim output from pip freeze | grep napalm between quotes below)
napalm==4.0.0
Network operating system version
(Paste verbatim output from show version - or equivalent - between quotes below)
Cisco IOS XE Software, Version 17.08.01
Cisco IOS Software [Cupertino], Catalyst L3 Switch Software (CAT9K_IOSXE), Version 17.8.1, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2022 by Cisco Systems, Inc.
Compiled Sat 09-Apr-22 00:47 by mcpre
Cisco IOS-XE software, Copyright (c) 2005-2022 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
BOOTLDR: System Bootstrap, Version 17.5.1r, RELEASE SOFTWARE (P)
raa-test-sw-01 uptime is 2 weeks, 5 days, 3 hours, 26 minutes
Uptime for this control processor is 2 weeks, 5 days, 3 hours, 28 minutes
System returned to ROM by PowerOn
System restarted at 10:33:44 UTC Wed May 24 2023
System image file is "flash:packages.conf"
Last reload reason: PowerOn
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
[email protected].
Technology Package License Information:
------------------------------------------------------------------------------
Technology-package Technology-package
Current Type Next reboot
------------------------------------------------------------------------------
network-essentials Smart License network-essentials
dna-essentials Subscription Smart License dna-essentials
AIR License Level: AIR DNA Advantage
Next reload AIR license Level: AIR DNA Advantage
Smart Licensing Status: Smart Licensing Using Policy
cisco C9300X-48HX (X86) processor with 1310600K/6147K bytes of memory.
Processor board ID FOC2613YBQF
2 Virtual Ethernet interfaces
56 Ten Gigabit Ethernet interfaces
16 TwentyFive Gigabit Ethernet interfaces
4 Hundred Gigabit Ethernet interfaces
2048K bytes of non-volatile configuration memory.
16777216K bytes of physical memory.
1638400K bytes of Crash Files at crashinfo:.
11264000K bytes of Flash at flash:.
Base Ethernet MAC Address : 18:59:f5:96:ae:80
Motherboard Assembly Number : 73-19750-06
Motherboard Serial Number : FOC261012H1
Model Revision Number : D0
Motherboard Revision Number : A0
Model Number : C9300X-48HX
System Serial Number : FOC2613YBQF
CLEI Code Number :
Switch Ports Model SW Version SW Image Mode
------ ----- ----- ---------- ---------- ----
* 1 78 C9300X-48HX 17.08.01 CAT9K_IOSXE INSTALL
Description of Issue/Question
We have a large fleet of Cisco and Arista switches and we have noticed there is a difference in the way the vendor OS's handle tagged VLAN's on an interface. In Arista you can add as many as you like and it will stay as a single string in the config. Cisco on the other hand splits the VLAN's onto multiple lines based on a character count (48 including
,
unless the list would be split over 3 lines then it's splits on 41 and 43 characters).Cisco:
Arista:
Did you follow the steps from https://github.com/napalm-automation/napalm#faq
(Place an
x
between the square brackets where applicable)Setup
napalm version
(Paste verbatim output from
pip freeze | grep napalm
between quotes below)Network operating system version
(Paste verbatim output from
show version
- or equivalent - between quotes below)Steps to Reproduce the Issue
We have the VLAN ID's in a list.
Error Traceback
(Paste the complete traceback of the exception between quotes below)
The reason this fails is due to the VLAN tags not being formatted correctly, my code will output them like so
The switch expects
I have fixed this issue with a custom filter but the more I work with it the more I feel this should be handled by Napalm.
The text was updated successfully, but these errors were encountered: