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 BridgeController

brctl = 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.

Filename, size & hash SHA256 hash help File type Python version Upload date
pybrctl-0.1.3.tar.gz (2.8 kB) Copy SHA256 hash SHA256 Source None Jul 13, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page