17
0
Files
python-ntc-templates/python-ntc-templates.spec
Dirk Mueller b57f332d11 - update to 9.0.0:
* Add aruba_os show inventory
  * Modify 'display device manuinfo' for Comware5/7
  * Fix cisco_ios_show_redundancy
  * Modify disp interface for Comware5/7 variations
  * Modify Comware disp ip int for DHCP assigned IP
  * Add paloalto_panos_show_routing_route
  * Added paloalto_panos_show_routing_resource
  * Added cisco_viptela_show_control_connections
  * Added cisco_viptela_show_omp_peers
  * Add paloalto_panos_show_routing_protocol_bgp_summary
  * Fix cisco_ios_traceroute for no VRF info
  * Add panos_show_high-availability_path-monitoring
  * Add Linux bluetoothctl show
  * Add cisco_ios_show_sdwan_omp_peers
  * Fix for FPR running ASA to cover admin down
  * Add cisco_ios_show_sdwan_bfd_sessions_table
  * Update display_vlan_all for Comware5 variations
  * Fix BGP multipath in cisco_asa_show_bgp_summary
  * Fix interface output nuances for FPR ASA
  * Fix older FC nxos interface statistics
  * Fix (and support) nxos VXLAN nve interfaces
  * Add cisco_ios_show_endpoint-tracker_tracker-group
  * Add cisco_ios_show_endpoint-tracker
  * Add cisco_ios_show_sdwan_bfd_summary
  * Add Mikrotik ip dns cache print terse without-paging
  * Fix nxos sh int uni/mcast pkts without whitespace
  * Fix arista sh int - VXLAN and no IP addr
  * Improve Mikrotik ip dhcp-server lease print terse without-
    paging

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ntc-templates?expand=0&rev=33
2026-03-08 21:11:32 +00:00

79 lines
3.2 KiB
RPMSpec

#
# spec file for package python-ntc-templates
#
# Copyright (c) 2026 SUSE LLC and contributors
#
# 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/
#
%{?sle15_python_module_pythons}
Name: python-ntc-templates
Version: 9.0.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
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 invoke}
BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module pytest >= 4.0.0}
BuildRequires: %{python_module ruamel.yaml}
BuildRequires: %{python_module textfsm >= 1.1.0}
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*
# 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
# 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
%{python_sitelib}/ntc_templates
%{python_sitelib}/ntc_templates-%{version}.dist-info
%changelog