15
0
forked from pool/python-napalm
Files
python-napalm/python-napalm.spec

100 lines
3.4 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-napalm
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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-%{**}}
Name: python-napalm
Accepting request 737247 from home:mnhauke:branches:devel:languages:python - Update to version 2.5.0 * namespace fix for napalm cli * [EOS] Fix broken get_bgp_neighbors when 6PE configured on eos * [NXOS] If parent_table in nxos is None call exception * [Junos] Remove extensive argument from junos_iface_table * MTU support for get_interfaces * [EOS] When asPathType is Internal (IBGP), as_path is empty and the remote-as is the local_as * [IOS] support n9k ipv6 ints for interfaces_ip getter * [IOS] support catalyst vss for mac_address getter * [IOS] Raise exception if BGP neighbor info requested and BGP not running * [NXOS] Implement nxos_ssh get_environment * Better handling of connection closing upon exceptions in enter * [NXOS] address single and multiple v6 address on n9k * [NXOS] Fix nxos and nxos_ssh hostname change handling * [Junos] add optional arg for DB config selection * [Junos] Fixed "Wrong interface information for Junos virtual-switch w/ bridge domains using get_network_instances" * [EOS] Implemented lock_disable for EOS based on Junos. * [NXOS] Work around NXAPI double quoting * [NXOS] napalm.nxos.traceroute - VRF traces and handle AS in hops * [IOS] Fix extra line in show ip int brief on IOS * [NXOS] Expand nxos commit merge rollback error * [IOS] add support for VRF for get_arp_table func * [IOS] get_bgp_neighbors vrf and safi aware * [IOS] Check if temperature sensor on Cisco device is not supported * [IOS] Fixes get_environment memory collection on ios-xe devices * [IOS] get_route_to implementation for IOS OBS-URL: https://build.opensuse.org/request/show/737247 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-napalm?expand=0&rev=2
2019-10-11 08:19:29 +00:00
Version: 2.5.0
Release: 0
Summary: Network Automation and Programmability Abstraction Layer
License: Apache-2.0
Group: Development/Languages/Python
URL: https://github.com/napalm-automation/napalm
Source: https://github.com/napalm-automation/napalm/archive/%{version}.tar.gz#/napalm-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-Jinja2
Requires: python-PyYAML
Requires: python-cffi >= 1.11.3
Accepting request 737247 from home:mnhauke:branches:devel:languages:python - Update to version 2.5.0 * namespace fix for napalm cli * [EOS] Fix broken get_bgp_neighbors when 6PE configured on eos * [NXOS] If parent_table in nxos is None call exception * [Junos] Remove extensive argument from junos_iface_table * MTU support for get_interfaces * [EOS] When asPathType is Internal (IBGP), as_path is empty and the remote-as is the local_as * [IOS] support n9k ipv6 ints for interfaces_ip getter * [IOS] support catalyst vss for mac_address getter * [IOS] Raise exception if BGP neighbor info requested and BGP not running * [NXOS] Implement nxos_ssh get_environment * Better handling of connection closing upon exceptions in enter * [NXOS] address single and multiple v6 address on n9k * [NXOS] Fix nxos and nxos_ssh hostname change handling * [Junos] add optional arg for DB config selection * [Junos] Fixed "Wrong interface information for Junos virtual-switch w/ bridge domains using get_network_instances" * [EOS] Implemented lock_disable for EOS based on Junos. * [NXOS] Work around NXAPI double quoting * [NXOS] napalm.nxos.traceroute - VRF traces and handle AS in hops * [IOS] Fix extra line in show ip int brief on IOS * [NXOS] Expand nxos commit merge rollback error * [IOS] add support for VRF for get_arp_table func * [IOS] get_bgp_neighbors vrf and safi aware * [IOS] Check if temperature sensor on Cisco device is not supported * [IOS] Fixes get_environment memory collection on ios-xe devices * [IOS] get_route_to implementation for IOS OBS-URL: https://build.opensuse.org/request/show/737247 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-napalm?expand=0&rev=2
2019-10-11 08:19:29 +00:00
Requires: python-ciscoconfparse
Requires: python-future
Requires: python-junos-eznc >= 2.2.0
Requires: python-netaddr
Requires: python-netmiko >= 2.3.0
Requires: python-nxapi-plumbing >= 0.5.2
Requires: python-paramiko >= 2.4.2
Requires: python-pyIOSXR >= 0.53
Requires: python-pyeapi >= 0.8.2
Requires: python-scp
Requires: python-setuptools >= 38.4.0
Requires: python-textfsm
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module Jinja2}
BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module cffi >= 1.11.3}
Accepting request 737247 from home:mnhauke:branches:devel:languages:python - Update to version 2.5.0 * namespace fix for napalm cli * [EOS] Fix broken get_bgp_neighbors when 6PE configured on eos * [NXOS] If parent_table in nxos is None call exception * [Junos] Remove extensive argument from junos_iface_table * MTU support for get_interfaces * [EOS] When asPathType is Internal (IBGP), as_path is empty and the remote-as is the local_as * [IOS] support n9k ipv6 ints for interfaces_ip getter * [IOS] support catalyst vss for mac_address getter * [IOS] Raise exception if BGP neighbor info requested and BGP not running * [NXOS] Implement nxos_ssh get_environment * Better handling of connection closing upon exceptions in enter * [NXOS] address single and multiple v6 address on n9k * [NXOS] Fix nxos and nxos_ssh hostname change handling * [Junos] add optional arg for DB config selection * [Junos] Fixed "Wrong interface information for Junos virtual-switch w/ bridge domains using get_network_instances" * [EOS] Implemented lock_disable for EOS based on Junos. * [NXOS] Work around NXAPI double quoting * [NXOS] napalm.nxos.traceroute - VRF traces and handle AS in hops * [IOS] Fix extra line in show ip int brief on IOS * [NXOS] Expand nxos commit merge rollback error * [IOS] add support for VRF for get_arp_table func * [IOS] get_bgp_neighbors vrf and safi aware * [IOS] Check if temperature sensor on Cisco device is not supported * [IOS] Fixes get_environment memory collection on ios-xe devices * [IOS] get_route_to implementation for IOS OBS-URL: https://build.opensuse.org/request/show/737247 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-napalm?expand=0&rev=2
2019-10-11 08:19:29 +00:00
BuildRequires: %{python_module ciscoconfparse}
BuildRequires: %{python_module ddt}
BuildRequires: %{python_module future}
BuildRequires: %{python_module junos-eznc >= 2.2.0}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module netaddr}
BuildRequires: %{python_module netmiko >= 2.3.0}
BuildRequires: %{python_module nxapi-plumbing >= 0.5.2}
BuildRequires: %{python_module paramiko >= 2.4.2}
BuildRequires: %{python_module pyIOSXR >= 0.53}
BuildRequires: %{python_module pyeapi >= 0.8.2}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module scp}
BuildRequires: %{python_module selectors2 >= 2.0.1}
BuildRequires: %{python_module setuptools >= 38.4.0}
BuildRequires: %{python_module textfsm}
# /SECTION
%python_subpackages
%description
NAPALM is a Python library that implements a set of functions to
interact with different router vendor devices using a unified API.
%prep
%setup -q -n napalm-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# FIXME: JunOS related unit tests are know to be broken with junos-eznc-2.3.0.
# Do not run those for now. https://github.com/napalm-automation/napalm/issues/1060
rm -Rf test/junos/
%pytest
%files %{python_files}
%license LICENSE
%doc README.md
%python3_only %{_bindir}/cl_napalm_configure
%python3_only %{_bindir}/cl_napalm_test
%python3_only %{_bindir}/cl_napalm_validate
%python3_only %{_bindir}/napalm
%{python_sitelib}/*
%changelog