14
0
Files
python-ntc-templates/python-ntc-templates.spec

82 lines
3.3 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-ntc-templates
#
- Update to 7.5.0: * fix cisco ios show tacacs * fix: Corrected Huawei VRP display_service-set_all template * fix: Corrected Ubiquiti EdgeRouter show_ip_route template * fix: Corrected Cisco IOS show_access-list template * Add sros show lag port * Fix Arista EOS show processes top once * Alcatel aos show vlan port members * added template for Alcatel AOS: show chassis * Adding new template for Alcatel aos: show system * New template Alcatel AOS: show mac-address-table * Created cisco_xr_show_bgp_vrf_all_neighbors_advertised-routes.textfsm * New template Alcatel AOS: show port-security * Add: mikrotik_routeros_routing_ospf_interface_print_terse * feat: Add show_port_description for alcatel_sros * feat: Add show service service-using * feat: Add show service id sap * Consolidate and add extra VRF to XR BGP neighbors * Enhancements to index and alcatel_aos_show_mac * fix: Bring port_id inline with other templates (allow satelites for interface) * cisco_ios_show_platform, only for switches * asa-vpn-l2l allow for empty connection * Update extreme_exos_show_iparp to support output format change * Fix empty line strings to have end-of-line match * New Template Alcatel AOS: show interfaces status * New template for Alcatel AOS: show lldp remote-system * Fix: mikrotik_routeros_ip_address_print * fix: Also take into account satellite ports for show port description * Updating command in Alcatel AOS: show vlan OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ntc-templates?expand=0&rev=19
2025-01-10 05:29:03 +00:00
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: python-ntc-templates
Version: 7.8.0
Release: 0
Summary: Package to return structured data from the output of network devices
License: Apache-2.0
URL: https://github.com/networktocode/ntc-templates
Accepting request 1217410 from home:mnhauke:network:automation - Update to version 7.3.0 * Fix fortinet get sys status capture group names. * Add error directive to exos_show_ports_information_detail. * New template: Aruba Procurve show version. * Fix Fortinet get system interface template and combine rules. * New template for NGFW FortiGate. * Add initial extreme slxos show clock template. * Add: Mikrotik interface vlan print detail. * Add: Mikrotik interface bonding print detail. * fix: Mikrotik interface print detail. * fix: Mikrotik interface ethernet monitor name. * fix: Mikrotik ip arp print without-paging. * New template: cisco_ios_show_power_inline.textfsm. * Feat cisco ios hqos. - Update to version 7.2.0 * Fix time capture and handle 'under a minute' times in Aruba show system (issue#1837). * New template: Huawei vrp display http server. * Huawei smartax display ont snmp profile 0 all. * Add template: Huawei vrp display telnet server status. * Resolve Fortinet HA Status parsing issues. * fix: IOS 'show bfd neighbors details' failures. * fix: Mikrotik system resource print. * fix: Mikrotik ip address print. * Fix: inner vlan parsing cisco ios show interfaces. - Update to version 7.1.0 * Fix template to properly handle hyphens in 'show lldp neighbors' for arista eos. * Fix a few minor issues with Arista 'show_processes_top_once'. * Huawei smartax display ont port state 0 1 eth state. OBS-URL: https://build.opensuse.org/request/show/1217410 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ntc-templates?expand=0&rev=15
2024-10-23 20:20:42 +00:00
Source: https://github.com/networktocode/ntc-templates/archive/v%{version}.tar.gz#/ntc-templates-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module poetry-core}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-textfsm >= 1.1.0
Suggests: python-PyYAML
Suggests: python-black
Suggests: python-pytest
Suggests: python-ruamel.yaml
Suggests: python-yamllint
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module pyaml}
Accepting request 1217410 from home:mnhauke:network:automation - Update to version 7.3.0 * Fix fortinet get sys status capture group names. * Add error directive to exos_show_ports_information_detail. * New template: Aruba Procurve show version. * Fix Fortinet get system interface template and combine rules. * New template for NGFW FortiGate. * Add initial extreme slxos show clock template. * Add: Mikrotik interface vlan print detail. * Add: Mikrotik interface bonding print detail. * fix: Mikrotik interface print detail. * fix: Mikrotik interface ethernet monitor name. * fix: Mikrotik ip arp print without-paging. * New template: cisco_ios_show_power_inline.textfsm. * Feat cisco ios hqos. - Update to version 7.2.0 * Fix time capture and handle 'under a minute' times in Aruba show system (issue#1837). * New template: Huawei vrp display http server. * Huawei smartax display ont snmp profile 0 all. * Add template: Huawei vrp display telnet server status. * Resolve Fortinet HA Status parsing issues. * fix: IOS 'show bfd neighbors details' failures. * fix: Mikrotik system resource print. * fix: Mikrotik ip address print. * Fix: inner vlan parsing cisco ios show interfaces. - Update to version 7.1.0 * Fix template to properly handle hyphens in 'show lldp neighbors' for arista eos. * Fix a few minor issues with Arista 'show_processes_top_once'. * Huawei smartax display ont port state 0 1 eth state. OBS-URL: https://build.opensuse.org/request/show/1217410 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ntc-templates?expand=0&rev=15
2024-10-23 20:20:42 +00:00
BuildRequires: %{python_module invoke}
BuildRequires: %{python_module pytest >= 4.0.0}
BuildRequires: %{python_module ruamel.yaml}
BuildRequires: %{python_module textfsm >= 1.1.0}
Accepting request 1217410 from home:mnhauke:network:automation - Update to version 7.3.0 * Fix fortinet get sys status capture group names. * Add error directive to exos_show_ports_information_detail. * New template: Aruba Procurve show version. * Fix Fortinet get system interface template and combine rules. * New template for NGFW FortiGate. * Add initial extreme slxos show clock template. * Add: Mikrotik interface vlan print detail. * Add: Mikrotik interface bonding print detail. * fix: Mikrotik interface print detail. * fix: Mikrotik interface ethernet monitor name. * fix: Mikrotik ip arp print without-paging. * New template: cisco_ios_show_power_inline.textfsm. * Feat cisco ios hqos. - Update to version 7.2.0 * Fix time capture and handle 'under a minute' times in Aruba show system (issue#1837). * New template: Huawei vrp display http server. * Huawei smartax display ont snmp profile 0 all. * Add template: Huawei vrp display telnet server status. * Resolve Fortinet HA Status parsing issues. * fix: IOS 'show bfd neighbors details' failures. * fix: Mikrotik system resource print. * fix: Mikrotik ip address print. * Fix: inner vlan parsing cisco ios show interfaces. - Update to version 7.1.0 * Fix template to properly handle hyphens in 'show lldp neighbors' for arista eos. * Fix a few minor issues with Arista 'show_processes_top_once'. * Huawei smartax display ont port state 0 1 eth state. OBS-URL: https://build.opensuse.org/request/show/1217410 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ntc-templates?expand=0&rev=15
2024-10-23 20:20:42 +00:00
BuildRequires: %{python_module toml}
# /SECTION
%python_subpackages
%description
TextFSM is a project built by Google that takes CLI string output and passes each line through a series of regular expressions until it finds a match. The regular expressions use named capture groups to build a text table out of the significant text. The names of the capture groups are used as column headers, and the captured values are stored as rows in the table.
%prep
%setup -q -n ntc-templates-%{version}
# rpmlintrc
chmod -x ntc_templates/templates/cisco*
- Update to 7.5.0: * fix cisco ios show tacacs * fix: Corrected Huawei VRP display_service-set_all template * fix: Corrected Ubiquiti EdgeRouter show_ip_route template * fix: Corrected Cisco IOS show_access-list template * Add sros show lag port * Fix Arista EOS show processes top once * Alcatel aos show vlan port members * added template for Alcatel AOS: show chassis * Adding new template for Alcatel aos: show system * New template Alcatel AOS: show mac-address-table * Created cisco_xr_show_bgp_vrf_all_neighbors_advertised-routes.textfsm * New template Alcatel AOS: show port-security * Add: mikrotik_routeros_routing_ospf_interface_print_terse * feat: Add show_port_description for alcatel_sros * feat: Add show service service-using * feat: Add show service id sap * Consolidate and add extra VRF to XR BGP neighbors * Enhancements to index and alcatel_aos_show_mac * fix: Bring port_id inline with other templates (allow satelites for interface) * cisco_ios_show_platform, only for switches * asa-vpn-l2l allow for empty connection * Update extreme_exos_show_iparp to support output format change * Fix empty line strings to have end-of-line match * New Template Alcatel AOS: show interfaces status * New template for Alcatel AOS: show lldp remote-system * Fix: mikrotik_routeros_ip_address_print * fix: Also take into account satellite ports for show port description * Updating command in Alcatel AOS: show vlan OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ntc-templates?expand=0&rev=19
2025-01-10 05:29:03 +00:00
# Correct version -- https://github.com/networktocode/ntc-templates/issues/1969
sed -i 's/6.0.0/%{version}/' pyproject.toml
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
Accepting request 853779 from home:ecsos:server - Update to 1.6.0 [Full Changelog](https://github.com/networktocode/ntc-templates/compare/v1.5.0...v1.6.0) **Implemented enhancements:** - Creation of a Faq [\#716] **Closed issues:** - This is not a data modeling project. So is there any data modeling project can work with this? [\#802] - Black 20.b0 breaks tox test [\#794] - Unable to Parse show version on IOSv Device [\#780] - TXTFSM will not process template even though Regex checker says line is acceptable for ciena SAOS [\#779] - cisco\_nxos\_show\_ip\_bgp\_summary.textfsm doesn't account for dual line bgp when output is too wide [\#766] - arista eos show mac address-table is choking on case sensitivity on line Total Mac Addresses for this criterion: 0 [\#764] - Cisco IOS - textfsm.parser.TextFSMError: State Error raised. Rule Line: 17. [\#718] **Merged pull requests:** - changes tests to import from lib [\#806] - modify for show inventory all. [\#804] - Change TextFSM Windows failure to a runtime failure \(instead of an import failure\) [\#803] - Added juniper\_junos\_show\_lldp\_neighbors [\#797] - Bugfix: Re-formatted development\_scripts.py and tests/test\_testcases\_… [\#795] - Fix typos in README.md [\#792] - Detect hostname on NX-OS platforms [\#789] - Cisco ASA show access-list command templates update. [\#783] - Updates to include capture on single word, no number model number [\#781] - Bugfix: Account for powered-up value in the output of nxos show module [\#774] - Dual line support for Cisco NX-OS 'ip bgp summary' command [\#772] - Arista eos show mac address table [\#765] - New Template: cisco\_nxos\_show\_ip\_interface [\#761] - New Template: cisco\_nxos\_show\_hsrp\_all [\#760] - New Template: cisco\_nxos\_show\_license\_usage [\#759] - New Template: cisco\_nxos\_show\_interface\_description [\#758] - Fixes \#716 [\#753](https://github.com/networktocode/ntc-templates/pull/753) - Changes from 1.5.0 [Full Changelog](https://github.com/networktocode/ntc-templates/compare/v1.4.2...v1.5.0) - Fix build errors. - initial version 1.4.2, required by python-junos-eznc OBS-URL: https://build.opensuse.org/request/show/853779 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ntc-templates?expand=0&rev=4
2020-12-08 19:52:42 +00:00
%if 0%{suse_version} <= 1500
# https://github.com/networktocode/ntc-templates/issues/743
rm tests/cisco_ios/show_access-list/cisco_ios_show_access-list.raw
Accepting request 853779 from home:ecsos:server - Update to 1.6.0 [Full Changelog](https://github.com/networktocode/ntc-templates/compare/v1.5.0...v1.6.0) **Implemented enhancements:** - Creation of a Faq [\#716] **Closed issues:** - This is not a data modeling project. So is there any data modeling project can work with this? [\#802] - Black 20.b0 breaks tox test [\#794] - Unable to Parse show version on IOSv Device [\#780] - TXTFSM will not process template even though Regex checker says line is acceptable for ciena SAOS [\#779] - cisco\_nxos\_show\_ip\_bgp\_summary.textfsm doesn't account for dual line bgp when output is too wide [\#766] - arista eos show mac address-table is choking on case sensitivity on line Total Mac Addresses for this criterion: 0 [\#764] - Cisco IOS - textfsm.parser.TextFSMError: State Error raised. Rule Line: 17. [\#718] **Merged pull requests:** - changes tests to import from lib [\#806] - modify for show inventory all. [\#804] - Change TextFSM Windows failure to a runtime failure \(instead of an import failure\) [\#803] - Added juniper\_junos\_show\_lldp\_neighbors [\#797] - Bugfix: Re-formatted development\_scripts.py and tests/test\_testcases\_… [\#795] - Fix typos in README.md [\#792] - Detect hostname on NX-OS platforms [\#789] - Cisco ASA show access-list command templates update. [\#783] - Updates to include capture on single word, no number model number [\#781] - Bugfix: Account for powered-up value in the output of nxos show module [\#774] - Dual line support for Cisco NX-OS 'ip bgp summary' command [\#772] - Arista eos show mac address table [\#765] - New Template: cisco\_nxos\_show\_ip\_interface [\#761] - New Template: cisco\_nxos\_show\_hsrp\_all [\#760] - New Template: cisco\_nxos\_show\_license\_usage [\#759] - New Template: cisco\_nxos\_show\_interface\_description [\#758] - Fixes \#716 [\#753](https://github.com/networktocode/ntc-templates/pull/753) - Changes from 1.5.0 [Full Changelog](https://github.com/networktocode/ntc-templates/compare/v1.4.2...v1.5.0) - Fix build errors. - initial version 1.4.2, required by python-junos-eznc OBS-URL: https://build.opensuse.org/request/show/853779 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ntc-templates?expand=0&rev=4
2020-12-08 19:52:42 +00:00
%endif
# https://github.com/networktocode/ntc-templates/issues/743 (closed but still an open issue)
# -> skip tests: arista_eos_show_ip_access-lists, cisco_ios_show_access-list, cisco_nxos_show_ip_bgp_neighbors, cisco_nxos_show_ip_bgp_neighbors_with_policy_names
# https://github.com/networktocode/ntc-templates/issues/958
# -> skip tests: cisco_nxos_show_environment, cisco_nxos_show_environment2
%pytest -k 'not (arista_eos_show_ip_access-lists or cisco_ios_show_access-list or cisco_nxos_show_ip_bgp_neighbors or cisco_nxos_show_environment or cisco_nxos_show_environment2 or cisco_nxos_show_ip_bgp_neighbors_with_policy_names)'
%files %{python_files}
%license LICENSE
%doc README.md
- Update to 7.5.0: * fix cisco ios show tacacs * fix: Corrected Huawei VRP display_service-set_all template * fix: Corrected Ubiquiti EdgeRouter show_ip_route template * fix: Corrected Cisco IOS show_access-list template * Add sros show lag port * Fix Arista EOS show processes top once * Alcatel aos show vlan port members * added template for Alcatel AOS: show chassis * Adding new template for Alcatel aos: show system * New template Alcatel AOS: show mac-address-table * Created cisco_xr_show_bgp_vrf_all_neighbors_advertised-routes.textfsm * New template Alcatel AOS: show port-security * Add: mikrotik_routeros_routing_ospf_interface_print_terse * feat: Add show_port_description for alcatel_sros * feat: Add show service service-using * feat: Add show service id sap * Consolidate and add extra VRF to XR BGP neighbors * Enhancements to index and alcatel_aos_show_mac * fix: Bring port_id inline with other templates (allow satelites for interface) * cisco_ios_show_platform, only for switches * asa-vpn-l2l allow for empty connection * Update extreme_exos_show_iparp to support output format change * Fix empty line strings to have end-of-line match * New Template Alcatel AOS: show interfaces status * New template for Alcatel AOS: show lldp remote-system * Fix: mikrotik_routeros_ip_address_print * fix: Also take into account satellite ports for show port description * Updating command in Alcatel AOS: show vlan OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ntc-templates?expand=0&rev=19
2025-01-10 05:29:03 +00:00
%{python_sitelib}/ntc_templates
%{python_sitelib}/ntc_templates-%{version}.dist-info
%changelog