Skip to main content

Python brctl wrapper

Project description

Pybrctl

Pybrctl is a pure Python library for managing bridges. It is a lightwight wrapper for the linux brctl command, included in the bridge-utils package. It requires Python, Linux, and the bridge-utils package.

It was written by Ido Nahshon at Jan 2015, and it was released under the GPL license.

Example Usage

This example shows how to set up a new bridge and remove it:

from pybrctl import pybrctl

brctl = pybrctl.BridgeController()

b = brctl.addbr("br0")
b.addif("eth0")
b.addif("eth1")
b.setmaxageing(0)

brctl.delbr("br0")

Source

Latest version on github: https://github.com/udragon/pybrctl Feel free to contribute. ;)

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

nbycomp_pybrctl-0.1.4.2-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file nbycomp_pybrctl-0.1.4.2-py3-none-any.whl.

File metadata

  • Download URL: nbycomp_pybrctl-0.1.4.2-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/2.7.15+

File hashes

Hashes for nbycomp_pybrctl-0.1.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7f76ce097ee1bbc3a9f0ff6f913f1e5392bd82c444e503ad64da82a701b1bae2
MD5 8ae7a9a3a716bf31d140677c9c11bfd8
BLAKE2b-256 fe6f554373cadf1d551238a3f5bb7bd51e00b663fe600e0ffe0b753db7bdabc1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page