-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
83 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
"""Top-level package for NetBox Python.""" | ||
from importlib.metadata import version | ||
|
||
__author__ = """Arthur Hanson""" | ||
__email__ = "[email protected]" | ||
__version__ = "0.1.0" | ||
__version__ = version(__name__) | ||
|
||
from netbox_python.exceptions import NetBoxException | ||
from netbox_python.netbox import NetBoxClient | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
from netbox_python.baseapi import APIResource | ||
|
||
|
||
class vpn: | ||
def __init__(self, client): | ||
self.ike_policies = self._ike_policies(client) | ||
self.ike_proposals = self._ike_proposals(client) | ||
self.ipsec_policies = self._ipsec_policies(client) | ||
self.ipsec_proposals = self._ipsec_proposals(client) | ||
self.ipsec_profiles = self._ipsec_profiles(client) | ||
self.tunnel_groups = self._tunnel_groups(client) | ||
self.tunnels = self._tunnels(client) | ||
self.tunnel_terminations = self._tunnel_terminations(client) | ||
self.l2vpns = self._l2vpns(client) | ||
self.l2vpn_terminations = self._l2vpn_terminations(client) | ||
|
||
super().__init__() | ||
|
||
class _ike_policies(APIResource): | ||
path = "vpn/ike-policies/" | ||
|
||
class _ike_proposals(APIResource): | ||
path = "vpn/ike-proposals/" | ||
|
||
class _ipsec_policies(APIResource): | ||
path = "vpn/ipsec-policies/" | ||
|
||
class _ipsec_proposals(APIResource): | ||
path = "vpn/ipsec-proposals/" | ||
|
||
class _ipsec_profiles(APIResource): | ||
path = "vpn/ipsec-profiles/" | ||
|
||
class _tunnel_groups(APIResource): | ||
path = "vpn/tunnel-groups/" | ||
|
||
class _tunnels(APIResource): | ||
path = "vpn/tunnels/" | ||
|
||
class _tunnel_terminations(APIResource): | ||
path = "vpn/tunnel-terminations/" | ||
|
||
class _l2vpns(APIResource): | ||
path = "vpn/l2vpns/" | ||
|
||
class _l2vpn_terminations(APIResource): | ||
path = "vpn/l2vpn-terminations/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,9 @@ | ||
pip==23.0.1 | ||
bump2version==1.0.1 | ||
wheel==0.38.4 | ||
watchdog==2.3.0 | ||
flake8==6.0.0 | ||
tox==4.4.6 | ||
coverage==7.2.1 | ||
twine==4.0.2 | ||
|
||
pytest==7.2.1 | ||
black==23.1.0 | ||
flake8==6.0.0 | ||
pip==23.0.1 | ||
pre-commit==3.1.0 | ||
|
||
pytest==7.2.* | ||
twine==4.0.2 | ||
watchdog==2.3.0 | ||
wheel==0.38.4 |
This file was deleted.
Oops, something went wrong.