forked from pool/python-ntc-templates
- Update to version 2.2.2
* cisco ios show ip access-lists template includes additional
ICMP_TYPE options
* cisco ios show version template support for StackWise Virtual
Domains
- Update to version 2.2.1
* Missing ICMP Type mask
- Update to version 2.2.0
Closed issues:
* cisco_ios_show_ip_access-lists template needs updated to
include precedence and tos in *_PORT_MATCH
* cisco_nxos_show_interface_transceiver transceiver template
failure
Merged pull requests:
* cisco_ios_show_version: Cisco IOS uptime parsing more granular
(days, hours, etc.).
* New Template: cisco_ios_show_crypto_session_details.
* cisco_ios_show_vrf.texfsm: Parse a vrf with no interfaces.
* cisco_ios_show_interfaces_switchport: Modified Trunk state to
handle multiline trunking lists.
* Fix nxos_show_interface_transceiver failure.
* Updated cisco_ios_show_ip_access-lists.textfsm to include the
SRC_PORT_MATCH and DST_PORT_MATCH values for precedence and
tos.
- Update to version 2.1.0
Closed issues:
* cisco_nxos_show_cdp_neighbors_detail 'str' object has no
attribute 'seek'.
* show int status returns error (seems template error) for
particular switch for other switches it does work (iOS).
OBS-URL: https://build.opensuse.org/request/show/913359
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ntc-templates?expand=0&rev=6
77 lines
2.8 KiB
RPMSpec
77 lines
2.8 KiB
RPMSpec
#
|
|
# spec file for package python-ntc-templates
|
|
#
|
|
# Copyright (c) 2021 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/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
%define skip_python2 1
|
|
Name: python-ntc-templates
|
|
Version: 2.2.2
|
|
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
|
|
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}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module ruamel.yaml}
|
|
BuildRequires: %{python_module textfsm >= 1.1.0}
|
|
# /SECTION
|
|
%python_subpackages
|
|
|
|
%description
|
|
Package to return structured data from the output of network devices.
|
|
|
|
%prep
|
|
%setup -q -n ntc-templates-%{version}
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
%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
|
|
%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 CHANGELOG.md
|
|
%{python_sitelib}/*
|
|
|
|
%changelog
|