Skip to content

Commit

Permalink
Working variant most recent (#16)
Browse files Browse the repository at this point in the history
* Releasing v23.8

* Releasing v23.9

* Fix for isis learn and removed duplicate parser

* Added changelog

* Update run_tests.yml

* Removed UT of duplicate parser

* Fix UT

* Fix UT

* Fix UT

* Add files via upload

Hi,
Add IOS parser "show vlan internal usage"
Thanks
Mehdi

* Create empty_output_output.txt

* Create golden_output1_output.txt

* Add files via upload

* Delete src/genie/libs/parser/ios/tests/ShowVlanInternalUsage/cli/equal/golden_output1_output.txt

* Add files via upload

* Add files via upload

changelog add for 'show vlan internal usage'

* Releasing v23.10

* Update src/genie/libs/parser/ios/show_vlan_internal_usage.py

Key names

Co-authored-by: Thomas Ryan <[email protected]>

* Update src/genie/libs/parser/ios/show_vlan_internal_usage.py

Suggested change for usage

Co-authored-by: Thomas Ryan <[email protected]>

* Update src/genie/libs/parser/ios/show_vlan_internal_usage.py

Suggested change

Co-authored-by: Thomas Ryan <[email protected]>

* Add files via upload

Here the contribution with "show vlan internal usage" parser as asked, I moved it to "show_vlan.py" and imported it from IOSXE to IOS

* Delete src/genie/libs/parser/ios/tests/ShowVlanInternalUsage/cli directory

As asked, I will delet this folder to create one in IOSXE Test

* Delete src/genie/libs/parser/ios/show_vlan_internal_usage.py

I moved this in "show_vlan.py" and imported it from IOSXE into ISO as asked

* Add files via upload

I added "show vlan internal usage" parser to "show_vlan.py" file as asked in IOSXE and I imported it into IOS

* Create test

* Add files via upload

empty_output_output.txt

* Delete src/genie/libs/parser/iosxe/tests/ShowVlanInternalUsage/cli/empty/test

* Create test

* Add files via upload

Add "golden_output1_expected.py" and "golden_output1_output.txt"

* Delete src/genie/libs/parser/iosxe/tests/ShowVlanInternalUsage/cli/equal/test

* added priority percent to show policy map for iosxe

* Releasing 23.11

* added test  files

* removed blank line, unessesary lines and updated test file

* added missing }

* restored part of schema back to orriginal

* removed unessesary data covered by P7

* Releasing v24.1

* Releasing v24.1

* Port-channel show_cts iosxe fix

* New golden_output

* Capitalize If Name

* Port-channel show_cts iosxe fix

* Revert golden_output2

* Revert golden_output2

* Port-channel show_cts iosxe fix

* Add port-channel interfaces

* add golden_output4 to changelog

* updated tests with correct data and expectationed output

* removed blank line and added continue to line 2849

* Add missing p3 regex pattern

* added missing code

* Releasing v24.2

* updated to pyats 24.2

---------

Co-authored-by: omid <[email protected]>
Co-authored-by: bastell <[email protected]>
Co-authored-by: tasarath <[email protected]>
Co-authored-by: Taarini <[email protected]>
Co-authored-by: Liam Gerrior <[email protected]>
Co-authored-by: Mehdi Cherifi <[email protected]>
Co-authored-by: Ben Astell (bastell) <[email protected]>
Co-authored-by: Thomas Ryan <[email protected]>
Co-authored-by: Michael Clover <[email protected]>
Co-authored-by: domachad <[email protected]>
Co-authored-by: Douglas Monteiro <[email protected]>
Co-authored-by: Thomas Ryan <[email protected]>
Co-authored-by: AJ Cruz <[email protected]>
Co-authored-by: SOHAN TIRPUDE <[email protected]>
Co-authored-by: Sohan Tirpude <[email protected]>
Co-authored-by: Lukeman Hakkim Sheik Alavudeen <[email protected]>
Co-authored-by: Lukeman Hakkim <[email protected]>
Co-authored-by: hooij804 <[email protected]>
  • Loading branch information
19 people authored Mar 11, 2024
1 parent 716dc6f commit 65587be
Show file tree
Hide file tree
Showing 1,464 changed files with 106,717 additions and 10,038 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10']
python-version: ['3.8', '3.9', '3.10', '3.11']

steps:
- uses: actions/checkout@v2
Expand Down
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ TRUSTED_HOST = pyats-pypi.cisco.com

# Development pkg requirements
RELATED_PKGS = genie.libs.parser
# aiohttp requires charset-normalizer<3.0.0
DEPENDENCIES = xmltodict requests charset-normalizer==2.1.1
DEPENDENCIES = xmltodict requests "netaddr<1.0.0"

ifeq ($(MAKECMDGOALS), devnet)
BUILD_CMD += --devnet
Expand Down
2 changes: 2 additions & 0 deletions changelog/2022/august.rst
Original file line number Diff line number Diff line change
Expand Up @@ -264,3 +264,5 @@
* Updated schema/parser to add new header type `lem` to accommodate edelweiss platform output variant.




182 changes: 182 additions & 0 deletions changelog/2023/august.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,182 @@
--------------------------------------------------------------------------------
New
--------------------------------------------------------------------------------

* iosxe

* Added ShowPlatformTcamUtilization Parser
* added 'show platform hardware fed {switch} {mode} fwd-asic resource tcam utilization' for c9500
* Added ShowInterfaceCountersEtherchannel Parser
* added 'show interface {interface} counters etherchannel'
* Added ShowHardwareLed parser
* Added parser for 'show hardware led' for c9400 switch.

* Added ShowPerformanceMeasurementPaths
* show performance-measurement paths
* Added ShowPerformanceMeasurementSummary
* show performance-measurement summary
* show performance-measurement summary {detail}
* show performance-measurement summary {detail} {private}
* Added ShowIpv6DhcpInterface Parser
* Parser for 'show ipv6 dhcp interface'
* Parser for 'show ipv6 dhcp interface {interface}'
* Added ShowPlatformSoftwareFedSwitchActiveMatmMacTableVlanMac
* show platform software fed {state} matm macTable vlan {vlan} mac {mac}
* show platform software fed {switch} {state} matm macTable vlan {vlan} mac {mac}
* Added ShowSdwanPolicyServicePath Parser
* Parser for 'show sdwan policy service-path vpn {vpn} interface {interface} source-ip {source_ip} dest-ip {destination_ip} protocol {protocol}'
* Parser for 'show sdwan policy service-path vpn {vpn} interface {interface} source-ip {source_ip} dest-ip {destination_ip} protocol {protocol} {all}'
* Added show platform software fed switch {switch} fnf flow-record asic {asic} start-index {index} num-flows {flow} parser
* Added ShowIpNatTranslationsTotal parser
* Parser for "show ip nat translations total"
* Parser for "show ip nat translations vrf <vrf name> total"
* Added ShowMdnsSdCache
* parser for 'show mdns-sd cache'
* Added ShowTimeRange
* Added ShowOspfv3vrfNeighborInterfaceSchema
* parser for 'show ospfv3 vrf {vrf_id} neighbor interface'
* Added ShowFlowMonitorCacheFilterInterfaceIPv4 Parser
* Parser for 'show flow monitor {name} cache filter interface {direction} {interface_name} ipv4 {address_direction} address {address}'
* Added ShowDropsHistoryQfp
* show drops history qfp
* Added ShowDropsHistoryQfpClear
* show drops history qfp clear
* Added ShowPlatformHardwareQfpStatisticsDropHistory
* show platform hardware qfp {status} statistics drop history
* Added ShowPlatformHardwareQfpStatisticsDropHistoryClear
* show platform hardware qfp {status} statistics drop history clear
* Added ShowFileInformation
* Added schema and parser for ShowFileInformation

* iosxr
* Added ShowIsisIpv4Topology
* Parser for cli 'show isis ipv4 topology'
* Added ShowRibIpv6Iid
* parser for 'show rib ipv6 iid all'
* Added ShowPlatformSoftwareFedSwitchActiveAclInfoDbSummary
* parser for 'Show Platform Software Fed Switch Active Acl Info Db Summary'

* iosxe showsdwanappqoeadstatistics
* Added
* parser for 'show sdwan appqoe ad-statistics'

* iosxe showsdwanappqoedreoptstatistics
* Added
* parser for 'show sdwan appqoe dreopt statistics'

* iosxe showsdwanappqoermstatistics
* Added
* parser for 'show sdwan appqoe rm-statistics'


--------------------------------------------------------------------------------
Fix
--------------------------------------------------------------------------------

* iosxe
* Modified ShowPowerInlineModule
* Modified in the p2 regular expression to match the poe names
* Modified ShowIpBgpNeighbors
* Added New variables in Restricted address families to validate "l2vpn evpn" Neighbor
* Modified ShowPlatformTcamUtilization Parser
* Added mode variable
* Modified ShowPlatformSoftwareFedQosInterfaceIngressNpiDetailed Parser
* Fix p1 regular expression to match port-channel
* Modified ShowPolicyMapTypeSuperParser Parser
* Fix p1 regular expression to match port-channel
* Modified ShowPlatformIfmMapping c9500 Parser
* Fix p1 regular expression to match IFG_ID, First Serdes, Last Serdes
* Modified ShowPlatformSoftwareFedQosInterfaceSuperParser Parser
* added timeout value to execute command and fix p5 with if condition on the counter
* Modified ShowDerivedConfigInterface Parser
* Made violation key as Optional
* Modified ShowCallHomeProfileAll Parser
* Fix p7 regex
* Modified ShowPlatformSoftwareFedQosInterfaceIngressNpiDetailed Parser
* Added regex p4_12, p4_13, p4_14, p4_15, p4_16, p4_17, p4_18
* Modified ShowLldpNeighborsInterfaceDetail Parser
* Made 'management_addresses' as optional
* Modified ShowInterfacesTransceiverSchema Parser
* Added 'max_power' as optional key
* Modified ShowSwitchStackMode Parser
* Fix p1 regular expression pattern
* Added ShowUSB
* Added schema and parser for ShowUSB
* Modified ShowPolicyMapInterface
* Modified qos sets
* Added cos cos table t1
* Added traffic-class cos table t1
* Modified ShowDeviceTrackingCountersVlan
* Added new dict in the schema for the 'reason' variable with multiple
* Modified the existing golden_ouputs to match the schema
* Modified ShowDeviceTrackingDatabase
* Added 'show device-tracking database vlan {vlan_id}' cli
* Added New regex for vlan_db_capture
* Added New variables in Schema and made existing Optional
* Modified ShowLispEthernetMapCache
* Added new regex p3_1 for new pattern output,and changed schema as Optional
* Modified p3 regex to match the output
* Modified ShowIpMfib
* Modified p8 regex to match the output
* Modified show_derived.py
* Modificiation for show derived-config interface nve1
* Added regex to handle configuration under nve1
* Modified show_vrf.py
* Modificiation for show vrf detail
* Added regex to handle vnid, vni and core-vlan
* Modified ShowPlatformHardwareAuthenticationStatus
* Modified parser for "show platform hardware authentication status"
* Modified ShowPlatformSoftwareFedIfm
* Fixed TunnelID range and support for both modular and stack platforms
* Modified ShowFlowMonitorCache
* Added additional field fw_fw_event to schema
* Added regex pattern <p33> to accomodate fw_fw_event outputs
* Added ShowCableDiagnosticsTdrInt
* Parser for show cable diagnostics tdr int {interface}
* modified regex. p1,p2 and p3
* Modified show l2route evpn multicast smet
* Fixed issue of wrong index used for cli_command list in cli method of class ShowL2routeEvpnMulticastSmet
* Added ShowHwProgrammableAll
* Added schema and parser for ShowHwProgrammableAll
* Added ShowAuthenticationSessionsDetailsSuper
* Added <webauth> in p6 regex as Optional
* Modified ShowLicenseTechSupport as per the output change in latest polaris version.
* Added the key smartagentcompliancestatus in schema.
* Modified ShowLogging
* Local variable 'trap_dict' referenced before assignment
* Modified ShowAccessSessionMacDetails
* Modified keys <session_timeout>, <vlan_group>, <acs_acl>, <timeout_action> , <session_timeout> as Optional in the schema.

* asa
* Fix for ShowVersion parser
* Updated regex p7

* nxos
* Fix for ShowModule parser
* Updated regex for much more tightly controlled matching
* Modified ShowVpc
* Updated show vpc parser to include Virtual-peerlink mode status
* Fix for ShowBgpVrfAllNeighbors parser
* modify regex to handle new pattern.
* Fix for ShowInterfaceBrief parser
* add regex to handle tunnel interfaces

* iosxr
* Modified ShowRouteIpv6
* Added pattern <p15> to match 'ffff50.1.1.1, from ffff50.1.1.8'
* Modified ShowL2vpnBridgeDomainBrief
* Added p2 and p3 pattern
* Modified ShowBfdSessionDestination
* Added Interfaces as key under dest value and moved complete schema which was under dest to interfaces key.
* Modified async_detection_time_ms as optional parameter under timer_vals in schema.
* Modified echo_detection_time_ms as optional parameter under timer_vals in schema.
* Added <p3> to parse the format "No n/a n/a n/a UP".
* Added <p4> to parse the format "BE10 1.1.1.1 n/a n/a DOWN".








146 changes: 146 additions & 0 deletions changelog/2023/november.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
--------------------------------------------------------------------------------
New
--------------------------------------------------------------------------------

* iosxe
* Added ShowPlatformSoftwareFedSwitchActiveIFMInterfacesSVI
* Added schema and parser for 'sh platform software fed {switch} {active} ifm interfaces svi'
* Added ShowPlatformSoftwareFedSwitchActiveIFMMappingsEtherchannel
* Added schema and parser for 'show platform software fed {switch} {mode} ifm mappings etherchannel'
* Added ShowBfdInternal
* Added schema and parser for 'show bfd internal'
* Added ShowCryptoPkiCertificatesPemServer
* Added new parser for cli 'show cry pki certificates pem server'
* Added ShowObjectGroupName
* added parser for "show object-group name {group_name}"
* Added ShowOspfv3NeighborInterface
* show ospfv3 neighbor {interface}
* Added ShowPlatformSoftwareSteeringPolicyAomInfo
* parser for cli 'show platform software steering-policy forwarding-manager switch {switch} F0 policy-aom-info'
* Added ShowPlatformSoftwareObjectManagerF0Object
* parser for cli 'show platform software object-manager switch {switch} F0 object {object}'
* Added ShowLispVrf
* parser for cli 'show lisp vrf {vrf}'
* Added ShowPlatformSoftwareAccessListSwitchActiveFPActiveOgLkupIds
* parser for Show Platform Software Access List Switch Active FP ActiveOgLkupIds
* Added ShowQfpDropsThresholds
* show qfp drops thresholds
* Added ShowConsistencyCheckerMcastStartAll
* "show consistency-checker mcast {layer} start all"
* "show consistency-checker mcast {layer} start {address} {source}"
* "show consistency-checker mcast {layer} start {address}"
* "show consistency-checker mcast {layer} start vrf {instance_name} {address} {source}"
* "show consistency-checker mcast {layer} start vlan {vlan_id} {address}"
* Added ShowConsistencyCheckerRunIdDetail
* "show consistency-checker run-id {id} detail"
* Added ShowConsistencyCheckerRunId
* "show consistency-checker run-id {id}"

* iosxe/c9300
* Modified ShowEnvironmentAll
* Added support for < Sensor List Environmental Monitoring >.

* iosxr
* Added ShowOspfProcessName
* Parser for cli 'show ospf {process_name}'
* Added ShowOspfv3ProcessName
* Parser for cli 'show ospfv3 {process_name}'
* Added ShowPtpForeignMastersBrief
* Added parser for show ptp foreign-masters brief

* nxos
* Added ShowMacSecMkaSummary
* parser for 'show macsec mka summary'
* Added ShowMacSecMkaSession
* parser for 'show macsec mka session'
* Added ShowMacSecMkaSessionDetails
* parser for 'show macsec mka session details'
* Added ShowMacSecMkaStats
* parser for 'show macsec mka statistics'

* sonic
* Added ShowVersion
* Added new OS SONiC and created ShowVersion parser
* Inherited DockerStatsNoStream from Linux parsers


--------------------------------------------------------------------------------
Fix
--------------------------------------------------------------------------------

* iosxe
* Fix for ShowPlatformHardwareFedSwitchQosQueueConfig
* Added str and list pattern to match all possible values
* Modified ShowPlatformSoftwareFedActiveAclInfoDbDetail
* Added ipv6 source and destination
* Modified ShowIpv6Interface Parser
* parser for 'show ipv6 inerface {interface}' added new regex p18_1.
* Modified ShowSpanningTree Parser
* parser for 'show spanning tree' added new regex p1_1,p1_2,p1_3,p1_4
* Modified ShowPlatformFedActiveTcamUtilization
* Modified cli_command
* Modified ShowPlatform
* show platform parser now recognizes 'init, active' state
* Modified ShowPlatformSoftwareMemoryCallsite
* Enhanced ShowPlatformSoftwareMemoryCallsite parser to work for show platform software memory fed switch active alloc callsite brief
* Modified ShowCryptoPkiCertificatesPemServer
* Enhanced the parser by adding '\n' to each line in the output
* Fix for ShowPdmSteeringPolicy
* fixed old parser for cli 'show pdm steering policy' to capture full contract name as contract name can be anything
* Fix for ShowPlatformSoftwareFedActiveSecurityFed
* fixed old parser for cli 'show platform software fed {switch} active security-fed sis-redirect firewall all' due to change in output
* Modified ShowRunInterface
* Added 112 regex for service-policy outputs
* Fix for ShowSpanningTreeSummary
* Added additional key "bpdu_sender_conflict"
* Modified for ShowAccessSessionInterfaceDetails parser
* Added new regex <p11_1> for matching ipv6 address '1555105ced6cc3825b39d' '1555102251fffe005'
* Modified ShowLispIpv4Publication
* Added support for missing locator addresses.
* Modified ShowLispIpv6Publication
* Added support for missing locator addresses.
* Modified ShowLispServiceDatabase
* Added support for optional Service-Insertion ID.
* Modified ShowNat66Statistics
* Changed enable_count from schema to Optional.
* Updated regex pattern p0 to accommodate various outputs
* Added ShowPlatformSoftwareDistributedIpsecTunnelInfo
* Added ShowPlatformSoftwareDistributedIpsecTunnelInfo for CLI "show platform software distributed-ipsec tunnel-info".

* iosxr
* Modified ShowIsisInterface Parser
* Modified pattern r38 to support "Layer-2 Multicast"
* Modified pattern r40 to support "All ISs Listening"
* Added key "lsp_rexmit_queue_size" in topology section in schema
* Modified ShowBgpInstanceNeighborsDetail
* Added Optional parameter configured_keepalive_interval to schema
* Added Optional parameter configured_holdtime to schema
* Added Optional parameter ttl_security to schema
* Added Optional parameter external_bgp_neighbor_hop_count to schema
* Added Optional parameter bfd to schema
* Added Optional parameter bfd_status inside bfd to schema
* Added Optional parameter session_status inside bfd to schema
* Added Optional parameter mininterval inside bfd to schema
* Added Optional parameter multiplier inside bfd to schema
* Added Optional parameter messages to schema
* Added Optional parameter messages_count inside messages to schema
* Added Optional parameter notifications inside messages to schema
* Added Optional parameter queue inside messages to schema
* Added pattern for graceful_restart key
* Added pattern for graceful_restart_restart_time key
* Added pattern for graceful_restart_stalepath_time key
* Modified ShowOspfDatabase
* Modified Router Id option to schema as Optional.
* Added regex pattern p5 to match lsa type 2 network link.

* nxos
* Added
* Updated regex <p1> with <.> in <type> field
* Modified ShowInterfaceCounters
* Modified regex to handle `--` in interface counters output.
* Modified show_interface_status
* Modified the p1 regex pattern to capture missing data and remove junk
* Fixed ShowInterface Parser
* Fixed regex for some failing output of show interface status command


Loading

0 comments on commit 65587be

Please sign in to comment.