Skip to main content

netsu Network Supervisor

https://travis-ci.org/netsu-project/netsu.svg?branch=master https://coveralls.io/repos/github/netsu-project/netsu/badge.svg?branch=master

Get sources:

git clone https://github.com/netsu-project/netsu
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 setup.py 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": "192.168.10.2", "prefix": 24}
        ],
        "gateway": "192.168.10.1"
      }
    }
  },
  "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": "www.github.com"}}'

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

Metadata

Release files for netsu 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for netsu 0.1.0
File Size Uploaded Provenance Actions
netsu-0.1.0.tar.gz 24.8 kB Without provenance Details for netsu-0.1.0.tar.gz

Release files / netsu-0.1.0.tar.gz

Download URL netsu-0.1.0.tar.gz
Size 24.8 kB
Tags Source
SHA-256 checksum
How to use checksums
16732f1ef419cbd7ff1857a43b2f0fa15b220ea2ef8c1ddc0f3a3e2e0d5c45d7
BLAKE2b-256 checksum
How to use checksums
56c4cb1543964a8fa75214ba901192d8bedfad24c0d40628c0852d41e1b6d65d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for netsu 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page