Skip to main content

No project description provided

Project description

Get sources:

git clone
cd netsu

Run checks and unit tests:

pip3 install tox
python3 -m tox

Install latest master release via pip:

# install uwsgi and uwsgi-plugin-python3 via your favourite package manager
pip3 install netsu

Install from sources:

# install uwsgi and uwsgi-plugin-python3 via your favourite package manager
python3 sdist
cd dist
pip3 install netsu*

Some usage examples:

# start service
systemctl start netsud

# query for running config
netsu-ctl get running-config

# query for system config
netsu-ctl get system-config

# query for system state
netsu-ctl get system-state

# set empty running config
netsu-ctl set running-config '{}'

# configure nic-bond-vlan-bridge and rollback if lost connectivity
# (requires netsu-plugin-networkmanager and netsu-plugin-connectivitycheck)
netsu-ctl set running-config \
  "nm_bridge": {
    "br0": {
      "ipv4": {
        "method": "manual",
        "addresses": [
          {"address": "", "prefix": 24}
        "gateway": ""
  "nm_vlan": {
    "vlan10": {
      "device": "bond1",
      "id": 10,
      "master": {"name": "br0", "type": "bridge"}
  "nm_bond": {
    "bond1": {
      "mode": "balance-rr"
  "nm_ethernet": {
    "ens3": {
      "master": {"name": "bond1", "type": "bond"}
}' \
'{"connectivitycheck_ping": {"address": ""}}'

# save running config into persistent
netsu-ctl set persistent-config --copy-from-table running-config

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

netsu-0.1.0.tar.gz (24.8 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page