Skip to content

Commit

Permalink
docs: ipdb brport feature
Browse files Browse the repository at this point in the history
Bug-Url: #364
  • Loading branch information
svinota committed May 31, 2017
1 parent 11dbfe8 commit 1005b37
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions pyroute2/ipdb/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,10 +249,21 @@
[x for x in dir(ipdb.interfaces.virbr0) if x.startswith('br_')]
Bridge ports
------------
IPDB supports specific bridge port parameters, such as proxyarp,
unicast/multicast flood, cost etc.::
with ipdb.interfaces['br-port0'] as p:
p.brport_cost = 200
p.brport_unicast_flood = 0
p.brport_proxyarp = 0
Ports management
----------------
IPDB provides a uniform API to manage ports::
IPDB provides a uniform API to manage bridge, bond and vrf ports::
with ipdb.interfaces['br-int'] as br:
br.add_port('veth0')
Expand All @@ -266,8 +277,6 @@
* `ipdb.interfaces.veth1` -- IPDB interface object
* `700` -- interface index, an integer
The same methods are used to manage bridge, bond and vrf ports.
Routes management
-----------------
Expand Down

0 comments on commit 1005b37

Please sign in to comment.