library to manage ip subnets
Project description
xindi-lib
allows you to manage subnets of a network.
from xindi import ManagedNetwork
You can start with a dictionary
input_data = dict()
input_data['managed_network'] = '10.0.0.0/26'
managed_network = ManagedNetwork(indict=input_data)
or with JSON
input_data = '{"managed_network": "10.0.0.0/26"}'
managed_network = ManagedNetwork(injson=input_data)
assign new subnets of the needed size
my_first_net = dict(
usecase='first network',
owner='Wolfgang Wangerin',
department='ITA'
)
managed_network.next_free_subnet(27, my_first_net)
or free an existing subnet
managed_network.free('10.0.0.0/27')
list all assigned subnets:
managed_network.assigned_networks()
and export the configuration
outdict = managed_network.export()
outjson = managed_network.exportJson()
It is now up to you to set up an API or Webfrontend and use this library. Let me know, if you use this in an FOSS project, because I may have a usecase for it.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file xindi-lib-0.1.1.macosx-10.14-x86_64.tar.gz.
File metadata
- Download URL: xindi-lib-0.1.1.macosx-10.14-x86_64.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e1f988be9afd3b6111b8d928388523bb507577dbdc3a35857ac67013ddf0d4f3
|
|
| MD5 |
3d8d83c74fff0e87bb58960b2600026e
|
|
| BLAKE2b-256 |
f95b8f0a0177d8a58f18402168567eeb24f1bff87911e4492f0573070be73860
|
File details
Details for the file xindi_lib-0.1.1-py3-none-any.whl.
File metadata
- Download URL: xindi_lib-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
59ea7c3a52986b4200132c5aa3006bd117e2c9c15185a2c13bcf8107c03ef1a3
|
|
| MD5 |
a8b7234393e568501da8e9f4eeac83ac
|
|
| BLAKE2b-256 |
fbe72fc0c9e32167cc83eab12115c661b42589b028f01c769a7e790ab154c5b6
|