diff --git a/net/napalm/Makefile b/net/napalm/Makefile new file mode 100644 index 00000000000..9e23b8e0828 --- /dev/null +++ b/net/napalm/Makefile @@ -0,0 +1,6 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2018/02/17 14:09:19 jasper Exp $ + + SUBDIR = + SUBDIR += py-napalm + +.include diff --git a/net/napalm/Makefile.inc b/net/napalm/Makefile.inc new file mode 100644 index 00000000000..22c5e991ade --- /dev/null +++ b/net/napalm/Makefile.inc @@ -0,0 +1,12 @@ +# $OpenBSD: Makefile.inc,v 1.1.1.1 2018/02/17 14:09:19 jasper Exp $ + +CATEGORIES += net net/napalm + +MAINTAINER ?= Jasper Lievisse Adriaanse + +MODULES += lang/python +MODPY_PI ?= Yes +MODPY_SETUPTOOLS ?= Yes + +# Apache 2.0 +PERMIT_PACKAGE_CDROM ?= Yes diff --git a/net/napalm/py-napalm/Makefile b/net/napalm/py-napalm/Makefile new file mode 100644 index 00000000000..e90ef3a8038 --- /dev/null +++ b/net/napalm/py-napalm/Makefile @@ -0,0 +1,15 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2018/02/17 14:09:19 jasper Exp $ + +COMMENT = network automation abstraction layer + +MODPY_EGG_VERSION = 2.3.0 +DISTNAME = napalm-${MODPY_EGG_VERSION} +PKGNAME = py-${DISTNAME} + +HOMEPAGE = https://github.com/napalm-automation/napalm + +BUILD_DEPENDS = devel/py-pip${MODPY_FLAVOR} +RUN_DEPENDS = net/py-netaddr${MODPY_FLAVOR} \ + net/py-netmiko${MODPY_FLAVOR} + +.include diff --git a/net/napalm/py-napalm/distinfo b/net/napalm/py-napalm/distinfo new file mode 100644 index 00000000000..8f825c77f3c --- /dev/null +++ b/net/napalm/py-napalm/distinfo @@ -0,0 +1,2 @@ +SHA256 (napalm-2.3.0.tar.gz) = pP/KJ7019Ec9jAHgrbyYsaId1zbSCN8C5b5K8iSNDOA= +SIZE (napalm-2.3.0.tar.gz) = 147033 diff --git a/net/napalm/py-napalm/patches/patch-napalm_base_helpers_py b/net/napalm/py-napalm/patches/patch-napalm_base_helpers_py new file mode 100644 index 00000000000..2675a25e81a --- /dev/null +++ b/net/napalm/py-napalm/patches/patch-napalm_base_helpers_py @@ -0,0 +1,16 @@ +$OpenBSD: patch-napalm_base_helpers_py,v 1.1.1.1 2018/02/17 14:09:19 jasper Exp $ + +textfsm supports python3 now, so no need to require jtextfsm + +Index: napalm/base/helpers.py +--- napalm/base/helpers.py.orig ++++ napalm/base/helpers.py +@@ -11,7 +11,7 @@ import itertools + + # third party libs + import jinja2 +-import jtextfsm as textfsm ++import textfsm + from netaddr import EUI + from netaddr import mac_unix + from netaddr import IPAddress diff --git a/net/napalm/py-napalm/pkg/DESCR b/net/napalm/py-napalm/pkg/DESCR new file mode 100644 index 00000000000..6ef322813a9 --- /dev/null +++ b/net/napalm/py-napalm/pkg/DESCR @@ -0,0 +1,4 @@ +NAPALM (Network Automation and Programmability Abstraction Layer with +Multivendor support) is a Python library that implements a set of +functions to interact with different router vendor devices using a +unified API. diff --git a/net/napalm/py-napalm/pkg/PLIST b/net/napalm/py-napalm/pkg/PLIST new file mode 100644 index 00000000000..c63a1f6f34a --- /dev/null +++ b/net/napalm/py-napalm/pkg/PLIST @@ -0,0 +1,194 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2018/02/17 14:09:19 jasper Exp $ +bin/cl_napalm_configure +bin/cl_napalm_test +bin/cl_napalm_validate +bin/napalm +lib/python${MODPY_VERSION}/site-packages/napalm/ +lib/python${MODPY_VERSION}/site-packages/napalm-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/ +lib/python${MODPY_VERSION}/site-packages/napalm-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO +lib/python${MODPY_VERSION}/site-packages/napalm-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/SOURCES.txt +lib/python${MODPY_VERSION}/site-packages/napalm-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/dependency_links.txt +lib/python${MODPY_VERSION}/site-packages/napalm-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/entry_points.txt +lib/python${MODPY_VERSION}/site-packages/napalm-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/requires.txt +lib/python${MODPY_VERSION}/site-packages/napalm-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/top_level.txt +lib/python${MODPY_VERSION}/site-packages/napalm/_SUPPORTED_DRIVERS.py +lib/python${MODPY_VERSION}/site-packages/napalm/_SUPPORTED_DRIVERS.pyc +lib/python${MODPY_VERSION}/site-packages/napalm/__init__.py +lib/python${MODPY_VERSION}/site-packages/napalm/__init__.pyc +lib/python${MODPY_VERSION}/site-packages/napalm/base/ +lib/python${MODPY_VERSION}/site-packages/napalm/base/__init__.py +lib/python${MODPY_VERSION}/site-packages/napalm/base/__init__.pyc +lib/python${MODPY_VERSION}/site-packages/napalm/base/base.py +lib/python${MODPY_VERSION}/site-packages/napalm/base/base.pyc +lib/python${MODPY_VERSION}/site-packages/napalm/base/canonical_map.py +lib/python${MODPY_VERSION}/site-packages/napalm/base/canonical_map.pyc +lib/python${MODPY_VERSION}/site-packages/napalm/base/clitools/ +lib/python${MODPY_VERSION}/site-packages/napalm/base/clitools/__init__.py +lib/python${MODPY_VERSION}/site-packages/napalm/base/clitools/__init__.pyc +lib/python${MODPY_VERSION}/site-packages/napalm/base/clitools/cl_napalm.py +lib/python${MODPY_VERSION}/site-packages/napalm/base/clitools/cl_napalm.pyc +lib/python${MODPY_VERSION}/site-packages/napalm/base/clitools/cl_napalm_configure.py +lib/python${MODPY_VERSION}/site-packages/napalm/base/clitools/cl_napalm_configure.pyc +lib/python${MODPY_VERSION}/site-packages/napalm/base/clitools/cl_napalm_test.py +lib/python${MODPY_VERSION}/site-packages/napalm/base/clitools/cl_napalm_test.pyc +lib/python${MODPY_VERSION}/site-packages/napalm/base/clitools/cl_napalm_validate.py +lib/python${MODPY_VERSION}/site-packages/napalm/base/clitools/cl_napalm_validate.pyc +lib/python${MODPY_VERSION}/site-packages/napalm/base/clitools/helpers.py +lib/python${MODPY_VERSION}/site-packages/napalm/base/clitools/helpers.pyc +lib/python${MODPY_VERSION}/site-packages/napalm/base/constants.py +lib/python${MODPY_VERSION}/site-packages/napalm/base/constants.pyc +lib/python${MODPY_VERSION}/site-packages/napalm/base/exceptions.py +lib/python${MODPY_VERSION}/site-packages/napalm/base/exceptions.pyc +lib/python${MODPY_VERSION}/site-packages/napalm/base/helpers.py +lib/python${MODPY_VERSION}/site-packages/napalm/base/helpers.pyc +lib/python${MODPY_VERSION}/site-packages/napalm/base/mock.py +lib/python${MODPY_VERSION}/site-packages/napalm/base/mock.pyc +lib/python${MODPY_VERSION}/site-packages/napalm/base/test/ +lib/python${MODPY_VERSION}/site-packages/napalm/base/test/__init__.py +lib/python${MODPY_VERSION}/site-packages/napalm/base/test/__init__.pyc +lib/python${MODPY_VERSION}/site-packages/napalm/base/test/base.py +lib/python${MODPY_VERSION}/site-packages/napalm/base/test/base.pyc +lib/python${MODPY_VERSION}/site-packages/napalm/base/test/conftest.py +lib/python${MODPY_VERSION}/site-packages/napalm/base/test/conftest.pyc +lib/python${MODPY_VERSION}/site-packages/napalm/base/test/double.py +lib/python${MODPY_VERSION}/site-packages/napalm/base/test/double.pyc +lib/python${MODPY_VERSION}/site-packages/napalm/base/test/getters.py +lib/python${MODPY_VERSION}/site-packages/napalm/base/test/getters.pyc +lib/python${MODPY_VERSION}/site-packages/napalm/base/test/helpers.py +lib/python${MODPY_VERSION}/site-packages/napalm/base/test/helpers.pyc +lib/python${MODPY_VERSION}/site-packages/napalm/base/test/models.py +lib/python${MODPY_VERSION}/site-packages/napalm/base/test/models.pyc +lib/python${MODPY_VERSION}/site-packages/napalm/base/utils/ +lib/python${MODPY_VERSION}/site-packages/napalm/base/utils/__init__.py +lib/python${MODPY_VERSION}/site-packages/napalm/base/utils/__init__.pyc +lib/python${MODPY_VERSION}/site-packages/napalm/base/utils/jinja_filters.py +lib/python${MODPY_VERSION}/site-packages/napalm/base/utils/jinja_filters.pyc +lib/python${MODPY_VERSION}/site-packages/napalm/base/utils/py23_compat.py +lib/python${MODPY_VERSION}/site-packages/napalm/base/utils/py23_compat.pyc +lib/python${MODPY_VERSION}/site-packages/napalm/base/utils/string_parsers.py +lib/python${MODPY_VERSION}/site-packages/napalm/base/utils/string_parsers.pyc +lib/python${MODPY_VERSION}/site-packages/napalm/base/validate.py +lib/python${MODPY_VERSION}/site-packages/napalm/base/validate.pyc +lib/python${MODPY_VERSION}/site-packages/napalm/eos/ +lib/python${MODPY_VERSION}/site-packages/napalm/eos/__init__.py +lib/python${MODPY_VERSION}/site-packages/napalm/eos/__init__.pyc +lib/python${MODPY_VERSION}/site-packages/napalm/eos/eos.py +lib/python${MODPY_VERSION}/site-packages/napalm/eos/eos.pyc +lib/python${MODPY_VERSION}/site-packages/napalm/eos/templates/ +lib/python${MODPY_VERSION}/site-packages/napalm/eos/templates/delete_ntp_servers.j2 +lib/python${MODPY_VERSION}/site-packages/napalm/eos/templates/delete_snmp_config.j2 +lib/python${MODPY_VERSION}/site-packages/napalm/eos/templates/delete_users.j2 +lib/python${MODPY_VERSION}/site-packages/napalm/eos/templates/set_ntp_servers.j2 +lib/python${MODPY_VERSION}/site-packages/napalm/eos/templates/set_users.j2 +lib/python${MODPY_VERSION}/site-packages/napalm/eos/templates/snmp_config.j2 +lib/python${MODPY_VERSION}/site-packages/napalm/eos/utils/ +lib/python${MODPY_VERSION}/site-packages/napalm/eos/utils/__init__.py +lib/python${MODPY_VERSION}/site-packages/napalm/eos/utils/__init__.pyc +lib/python${MODPY_VERSION}/site-packages/napalm/eos/utils/textfsm_templates/ +lib/python${MODPY_VERSION}/site-packages/napalm/eos/utils/textfsm_templates/bgp_detail.tpl +lib/python${MODPY_VERSION}/site-packages/napalm/eos/utils/textfsm_templates/ntp_peers.tpl +lib/python${MODPY_VERSION}/site-packages/napalm/eos/utils/textfsm_templates/snmp_config.tpl +lib/python${MODPY_VERSION}/site-packages/napalm/eos/utils/textfsm_templates/vrf.tpl +lib/python${MODPY_VERSION}/site-packages/napalm/ios/ +lib/python${MODPY_VERSION}/site-packages/napalm/ios/__init__.py +lib/python${MODPY_VERSION}/site-packages/napalm/ios/__init__.pyc +lib/python${MODPY_VERSION}/site-packages/napalm/ios/ios.py +lib/python${MODPY_VERSION}/site-packages/napalm/ios/ios.pyc +lib/python${MODPY_VERSION}/site-packages/napalm/ios/templates/ +lib/python${MODPY_VERSION}/site-packages/napalm/ios/templates/delete_ntp_peers.j2 +lib/python${MODPY_VERSION}/site-packages/napalm/ios/templates/delete_ntp_servers.j2 +lib/python${MODPY_VERSION}/site-packages/napalm/ios/templates/delete_snmp_config.j2 +lib/python${MODPY_VERSION}/site-packages/napalm/ios/templates/set_hostname.j2 +lib/python${MODPY_VERSION}/site-packages/napalm/ios/templates/set_ntp_peers.j2 +lib/python${MODPY_VERSION}/site-packages/napalm/ios/templates/set_ntp_servers.j2 +lib/python${MODPY_VERSION}/site-packages/napalm/ios/templates/snmp_config.j2 +lib/python${MODPY_VERSION}/site-packages/napalm/iosxr/ +lib/python${MODPY_VERSION}/site-packages/napalm/iosxr/__init__.py +lib/python${MODPY_VERSION}/site-packages/napalm/iosxr/__init__.pyc +lib/python${MODPY_VERSION}/site-packages/napalm/iosxr/constants.py +lib/python${MODPY_VERSION}/site-packages/napalm/iosxr/constants.pyc +lib/python${MODPY_VERSION}/site-packages/napalm/iosxr/iosxr.py +lib/python${MODPY_VERSION}/site-packages/napalm/iosxr/iosxr.pyc +lib/python${MODPY_VERSION}/site-packages/napalm/iosxr/templates/ +lib/python${MODPY_VERSION}/site-packages/napalm/iosxr/templates/delete_ntp_peers.j2 +lib/python${MODPY_VERSION}/site-packages/napalm/iosxr/templates/delete_ntp_servers.j2 +lib/python${MODPY_VERSION}/site-packages/napalm/iosxr/templates/delete_probes.j2 +lib/python${MODPY_VERSION}/site-packages/napalm/iosxr/templates/delete_snmp_config.j2 +lib/python${MODPY_VERSION}/site-packages/napalm/iosxr/templates/delete_users.j2 +lib/python${MODPY_VERSION}/site-packages/napalm/iosxr/templates/schedule_probes.j2 +lib/python${MODPY_VERSION}/site-packages/napalm/iosxr/templates/set_hostname.j2 +lib/python${MODPY_VERSION}/site-packages/napalm/iosxr/templates/set_ntp_peers.j2 +lib/python${MODPY_VERSION}/site-packages/napalm/iosxr/templates/set_ntp_servers.j2 +lib/python${MODPY_VERSION}/site-packages/napalm/iosxr/templates/set_probes.j2 +lib/python${MODPY_VERSION}/site-packages/napalm/iosxr/templates/set_users.j2 +lib/python${MODPY_VERSION}/site-packages/napalm/iosxr/templates/snmp_config.j2 +lib/python${MODPY_VERSION}/site-packages/napalm/junos/ +lib/python${MODPY_VERSION}/site-packages/napalm/junos/__init__.py +lib/python${MODPY_VERSION}/site-packages/napalm/junos/__init__.pyc +lib/python${MODPY_VERSION}/site-packages/napalm/junos/constants.py +lib/python${MODPY_VERSION}/site-packages/napalm/junos/constants.pyc +lib/python${MODPY_VERSION}/site-packages/napalm/junos/junos.py +lib/python${MODPY_VERSION}/site-packages/napalm/junos/junos.pyc +lib/python${MODPY_VERSION}/site-packages/napalm/junos/templates/ +lib/python${MODPY_VERSION}/site-packages/napalm/junos/templates/delete_ntp_peers.j2 +lib/python${MODPY_VERSION}/site-packages/napalm/junos/templates/delete_ntp_servers.j2 +lib/python${MODPY_VERSION}/site-packages/napalm/junos/templates/delete_probes.j2 +lib/python${MODPY_VERSION}/site-packages/napalm/junos/templates/delete_snmp_config.j2 +lib/python${MODPY_VERSION}/site-packages/napalm/junos/templates/delete_users.j2 +lib/python${MODPY_VERSION}/site-packages/napalm/junos/templates/schedule_probes.j2 +lib/python${MODPY_VERSION}/site-packages/napalm/junos/templates/set_hostname.j2 +lib/python${MODPY_VERSION}/site-packages/napalm/junos/templates/set_ntp_peers.j2 +lib/python${MODPY_VERSION}/site-packages/napalm/junos/templates/set_ntp_servers.j2 +lib/python${MODPY_VERSION}/site-packages/napalm/junos/templates/set_probes.j2 +lib/python${MODPY_VERSION}/site-packages/napalm/junos/templates/set_users.j2 +lib/python${MODPY_VERSION}/site-packages/napalm/junos/templates/snmp_config.j2 +lib/python${MODPY_VERSION}/site-packages/napalm/junos/utils/ +lib/python${MODPY_VERSION}/site-packages/napalm/junos/utils/__init__.py +lib/python${MODPY_VERSION}/site-packages/napalm/junos/utils/__init__.pyc +lib/python${MODPY_VERSION}/site-packages/napalm/junos/utils/junos_views.py +lib/python${MODPY_VERSION}/site-packages/napalm/junos/utils/junos_views.pyc +lib/python${MODPY_VERSION}/site-packages/napalm/junos/utils/junos_views.yml +lib/python${MODPY_VERSION}/site-packages/napalm/nxos/ +lib/python${MODPY_VERSION}/site-packages/napalm/nxos/__init__.py +lib/python${MODPY_VERSION}/site-packages/napalm/nxos/__init__.pyc +lib/python${MODPY_VERSION}/site-packages/napalm/nxos/nxos.py +lib/python${MODPY_VERSION}/site-packages/napalm/nxos/nxos.pyc +lib/python${MODPY_VERSION}/site-packages/napalm/nxos/templates/ +lib/python${MODPY_VERSION}/site-packages/napalm/nxos/templates/delete_ntp_peers.j2 +lib/python${MODPY_VERSION}/site-packages/napalm/nxos/templates/delete_ntp_servers.j2 +lib/python${MODPY_VERSION}/site-packages/napalm/nxos/templates/delete_snmp_config.j2 +lib/python${MODPY_VERSION}/site-packages/napalm/nxos/templates/delete_users.j2 +lib/python${MODPY_VERSION}/site-packages/napalm/nxos/templates/set_hostname.j2 +lib/python${MODPY_VERSION}/site-packages/napalm/nxos/templates/set_ntp_peers.j2 +lib/python${MODPY_VERSION}/site-packages/napalm/nxos/templates/set_ntp_servers.j2 +lib/python${MODPY_VERSION}/site-packages/napalm/nxos/templates/set_users.j2 +lib/python${MODPY_VERSION}/site-packages/napalm/nxos/templates/snmp_config.j2 +lib/python${MODPY_VERSION}/site-packages/napalm/nxos/utils/ +lib/python${MODPY_VERSION}/site-packages/napalm/nxos/utils/__init__.py +lib/python${MODPY_VERSION}/site-packages/napalm/nxos/utils/__init__.pyc +lib/python${MODPY_VERSION}/site-packages/napalm/nxos/utils/textfsm_templates/ +lib/python${MODPY_VERSION}/site-packages/napalm/nxos/utils/textfsm_templates/lldp_neighbors.tpl +lib/python${MODPY_VERSION}/site-packages/napalm/nxos/utils/textfsm_templates/snmp_config.tpl +lib/python${MODPY_VERSION}/site-packages/napalm/nxos/utils/textfsm_templates/users.tpl +lib/python${MODPY_VERSION}/site-packages/napalm/nxos_ssh/ +lib/python${MODPY_VERSION}/site-packages/napalm/nxos_ssh/__init__.py +lib/python${MODPY_VERSION}/site-packages/napalm/nxos_ssh/__init__.pyc +lib/python${MODPY_VERSION}/site-packages/napalm/nxos_ssh/nxos_ssh.py +lib/python${MODPY_VERSION}/site-packages/napalm/nxos_ssh/nxos_ssh.pyc +lib/python${MODPY_VERSION}/site-packages/napalm/nxos_ssh/templates/ +lib/python${MODPY_VERSION}/site-packages/napalm/nxos_ssh/templates/delete_ntp_peers.j2 +lib/python${MODPY_VERSION}/site-packages/napalm/nxos_ssh/templates/delete_ntp_servers.j2 +lib/python${MODPY_VERSION}/site-packages/napalm/nxos_ssh/templates/delete_snmp_config.j2 +lib/python${MODPY_VERSION}/site-packages/napalm/nxos_ssh/templates/delete_users.j2 +lib/python${MODPY_VERSION}/site-packages/napalm/nxos_ssh/templates/set_hostname.j2 +lib/python${MODPY_VERSION}/site-packages/napalm/nxos_ssh/templates/set_ntp_peers.j2 +lib/python${MODPY_VERSION}/site-packages/napalm/nxos_ssh/templates/set_ntp_servers.j2 +lib/python${MODPY_VERSION}/site-packages/napalm/nxos_ssh/templates/set_users.j2 +lib/python${MODPY_VERSION}/site-packages/napalm/nxos_ssh/templates/snmp_config.j2 +lib/python${MODPY_VERSION}/site-packages/napalm/nxos_ssh/utils/ +lib/python${MODPY_VERSION}/site-packages/napalm/nxos_ssh/utils/__init__.py +lib/python${MODPY_VERSION}/site-packages/napalm/nxos_ssh/utils/__init__.pyc +lib/python${MODPY_VERSION}/site-packages/napalm/nxos_ssh/utils/textfsm_templates/ +lib/python${MODPY_VERSION}/site-packages/napalm/nxos_ssh/utils/textfsm_templates/lldp_neighbors.tpl +lib/python${MODPY_VERSION}/site-packages/napalm/nxos_ssh/utils/textfsm_templates/snmp_config.tpl +lib/python${MODPY_VERSION}/site-packages/napalm/nxos_ssh/utils/textfsm_templates/users.tpl