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:

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 Distribution

pybrctl-0.1.4.tar.gz (9.8 kB view details)

Uploaded Source

File details

Details for the file pybrctl-0.1.4.tar.gz.

File metadata

  • Download URL: pybrctl-0.1.4.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for pybrctl-0.1.4.tar.gz
Algorithm Hash digest
SHA256 681c881aa595186fc94eb11091d6ba6470ec9d9aed748d6e6722a3a4bdc9a9f0
MD5 8a8bbce88a763821267afca385fb572b
BLAKE2b-256 ddc72604411e96f1096fd4aec93b6328a998bf096190cbaa166d578808943f5b

See more details on using hashes here.

Supported by

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