-
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.
Add render_config, update docs, v0.1.6 (#11)
- Loading branch information
Showing
12 changed files
with
206 additions
and
7 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,10 +1,14 @@ | ||
from netbox_python.api.asn_range import asn_range | ||
from netbox_python.api.circuits import circuits | ||
from netbox_python.api.core import core | ||
from netbox_python.api.dcim import dcim | ||
from netbox_python.api.extras import extras | ||
from netbox_python.api.ip_range import ip_range | ||
from netbox_python.api.ipam import ipam | ||
from netbox_python.api.plugins import plugins | ||
from netbox_python.api.prefix import prefix | ||
from netbox_python.api.tenancy import tenancy | ||
from netbox_python.api.users import users | ||
from netbox_python.api.virtualization import virtualization | ||
from netbox_python.api.vlan_group import vlan_group | ||
from netbox_python.api.wireless import wireless |
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,10 @@ | ||
from netbox_python.baseapi import AvailableAPIResource | ||
|
||
|
||
class asn_range: | ||
def __init__(self, client): | ||
self.available_asns = self._available_asns(client) | ||
super().__init__() | ||
|
||
class _available_asns(AvailableAPIResource): | ||
path = "ipam/asn-ranges/{id}/available-asns" |
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,10 @@ | ||
from netbox_python.baseapi import AvailableAPIResource | ||
|
||
|
||
class ip_range: | ||
def __init__(self, client): | ||
self.available_ips = self._available_ips(client) | ||
super().__init__() | ||
|
||
class _available_ips(AvailableAPIResource): | ||
path = "ipam/ip-ranges/{id}/available-ips" |
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,14 @@ | ||
from netbox_python.baseapi import AvailableAPIResource | ||
|
||
|
||
class prefix: | ||
def __init__(self, client): | ||
self.available_ips = self._available_ips(client) | ||
self.available_prefixes = self._available_prefixes(client) | ||
super().__init__() | ||
|
||
class _available_ips(AvailableAPIResource): | ||
path = "ipam/prefixes/{id}/available-ips" | ||
|
||
class _available_prefixes(AvailableAPIResource): | ||
path = "ipam/prefixes/{id}/available-prefixes" |
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,10 @@ | ||
from netbox_python.baseapi import AvailableAPIResource | ||
|
||
|
||
class vlan_group: | ||
def __init__(self, client): | ||
self.available_vlans = self._available_vlans(client) | ||
super().__init__() | ||
|
||
class _available_vlans(AvailableAPIResource): | ||
path = "ipam/vlan-groups/{id}/available-vlans" |
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,5 +1,5 @@ | ||
[bumpversion] | ||
current_version = 0.1.5 | ||
current_version = 0.1.6 | ||
commit = True | ||
tag = True | ||
|
||
|
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