summaryrefslogtreecommitdiff
path: root/python-netbox-bgp.spec
diff options
context:
space:
mode:
Diffstat (limited to 'python-netbox-bgp.spec')
-rw-r--r--python-netbox-bgp.spec264
1 files changed, 264 insertions, 0 deletions
diff --git a/python-netbox-bgp.spec b/python-netbox-bgp.spec
new file mode 100644
index 0000000..3fb002d
--- /dev/null
+++ b/python-netbox-bgp.spec
@@ -0,0 +1,264 @@
+%global _empty_manifest_terminate_build 0
+Name: python-netbox-bgp
+Version: 0.10.2
+Release: 1
+Summary: BGP related stuff
+License: Apache Software License
+URL: https://github.com/k01ek/netbox-bgp
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/3f/eb/ac0c92a944a880fb693d4e0f852b910f5989bbd804ce6169d50455761de9/netbox-bgp-0.10.2.tar.gz
+BuildArch: noarch
+
+
+%description
+# NetBox BGP Plugin
+[Netbox](https://github.com/netbox-community/netbox) plugin for BGP related objects documentation.
+
+## Features
+This plugin provide following Models:
+* BGP Communities
+* BGP Sessions
+* Routing Policy
+* Prefix Lists
+
+## Compatibility
+
+| | |
+|-------------|-------|
+| NetBox 2.10 | 0.3.9 |
+| NetBox 2.11 | 0.3.9 |
+| NetBox 3.0 | 0.4.3 |
+| NetBox 3.1 | 0.5.0 |
+| NetBox 3.2 | >= 0.6.0 |
+| NetBox 3.3 | >= 0.8.1 |
+| NetBox 3.4 | >= 0.9.0 |
+| NetBox 3.5 | >= 0.10.0 |
+
+## Installation
+
+The plugin is available as a Python package in pypi and can be installed with pip
+
+```
+pip install netbox-bgp
+```
+Enable the plugin in /opt/netbox/netbox/netbox/configuration.py:
+```
+PLUGINS = ['netbox_bgp']
+```
+Restart NetBox and add `netbox-bgp` to your local_requirements.txt
+
+See [NetBox Documentation](https://docs.netbox.dev/en/stable/plugins/#installing-plugins) for details
+
+## Configuration
+
+The following options are available:
+* `device_ext_page`: String (default right) Device related BGP sessions table position. The following values are available:
+left, right, full_width. Set empty value for disable.
+* `top_level_menu`: Bool (default False) Enable top level section navigation menu for the plugin.
+
+## Screenshots
+
+BGP Session
+![BGP Session](docs/img/session.png)
+
+BGP Sessions
+![BGP Session Table](docs/img/sessions.png)
+
+Community
+![Community](docs/img/commun.png)
+
+Peer Group
+![Peer Group](docs/img/peer_group.png)
+
+Routing Policy
+![Routing Policy](docs/img/routepolicy.png)
+
+Prefix List
+![Prefix List](docs/img/preflist.png)
+
+
+%package -n python3-netbox-bgp
+Summary: BGP related stuff
+Provides: python-netbox-bgp
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-netbox-bgp
+# NetBox BGP Plugin
+[Netbox](https://github.com/netbox-community/netbox) plugin for BGP related objects documentation.
+
+## Features
+This plugin provide following Models:
+* BGP Communities
+* BGP Sessions
+* Routing Policy
+* Prefix Lists
+
+## Compatibility
+
+| | |
+|-------------|-------|
+| NetBox 2.10 | 0.3.9 |
+| NetBox 2.11 | 0.3.9 |
+| NetBox 3.0 | 0.4.3 |
+| NetBox 3.1 | 0.5.0 |
+| NetBox 3.2 | >= 0.6.0 |
+| NetBox 3.3 | >= 0.8.1 |
+| NetBox 3.4 | >= 0.9.0 |
+| NetBox 3.5 | >= 0.10.0 |
+
+## Installation
+
+The plugin is available as a Python package in pypi and can be installed with pip
+
+```
+pip install netbox-bgp
+```
+Enable the plugin in /opt/netbox/netbox/netbox/configuration.py:
+```
+PLUGINS = ['netbox_bgp']
+```
+Restart NetBox and add `netbox-bgp` to your local_requirements.txt
+
+See [NetBox Documentation](https://docs.netbox.dev/en/stable/plugins/#installing-plugins) for details
+
+## Configuration
+
+The following options are available:
+* `device_ext_page`: String (default right) Device related BGP sessions table position. The following values are available:
+left, right, full_width. Set empty value for disable.
+* `top_level_menu`: Bool (default False) Enable top level section navigation menu for the plugin.
+
+## Screenshots
+
+BGP Session
+![BGP Session](docs/img/session.png)
+
+BGP Sessions
+![BGP Session Table](docs/img/sessions.png)
+
+Community
+![Community](docs/img/commun.png)
+
+Peer Group
+![Peer Group](docs/img/peer_group.png)
+
+Routing Policy
+![Routing Policy](docs/img/routepolicy.png)
+
+Prefix List
+![Prefix List](docs/img/preflist.png)
+
+
+%package help
+Summary: Development documents and examples for netbox-bgp
+Provides: python3-netbox-bgp-doc
+%description help
+# NetBox BGP Plugin
+[Netbox](https://github.com/netbox-community/netbox) plugin for BGP related objects documentation.
+
+## Features
+This plugin provide following Models:
+* BGP Communities
+* BGP Sessions
+* Routing Policy
+* Prefix Lists
+
+## Compatibility
+
+| | |
+|-------------|-------|
+| NetBox 2.10 | 0.3.9 |
+| NetBox 2.11 | 0.3.9 |
+| NetBox 3.0 | 0.4.3 |
+| NetBox 3.1 | 0.5.0 |
+| NetBox 3.2 | >= 0.6.0 |
+| NetBox 3.3 | >= 0.8.1 |
+| NetBox 3.4 | >= 0.9.0 |
+| NetBox 3.5 | >= 0.10.0 |
+
+## Installation
+
+The plugin is available as a Python package in pypi and can be installed with pip
+
+```
+pip install netbox-bgp
+```
+Enable the plugin in /opt/netbox/netbox/netbox/configuration.py:
+```
+PLUGINS = ['netbox_bgp']
+```
+Restart NetBox and add `netbox-bgp` to your local_requirements.txt
+
+See [NetBox Documentation](https://docs.netbox.dev/en/stable/plugins/#installing-plugins) for details
+
+## Configuration
+
+The following options are available:
+* `device_ext_page`: String (default right) Device related BGP sessions table position. The following values are available:
+left, right, full_width. Set empty value for disable.
+* `top_level_menu`: Bool (default False) Enable top level section navigation menu for the plugin.
+
+## Screenshots
+
+BGP Session
+![BGP Session](docs/img/session.png)
+
+BGP Sessions
+![BGP Session Table](docs/img/sessions.png)
+
+Community
+![Community](docs/img/commun.png)
+
+Peer Group
+![Peer Group](docs/img/peer_group.png)
+
+Routing Policy
+![Routing Policy](docs/img/routepolicy.png)
+
+Prefix List
+![Prefix List](docs/img/preflist.png)
+
+
+%prep
+%autosetup -n netbox-bgp-0.10.2
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-netbox-bgp -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon May 29 2023 Python_Bot <Python_Bot@openeuler.org> - 0.10.2-1
+- Package Spec generated