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.

This version is compatible with Python 3.

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.6-py3-none-any.whl (10.3 kB view hashes)

Uploaded Python 3

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