Skip to content

Commit

Permalink
docs: aafigure for IPRoute.vlan_filter()
Browse files Browse the repository at this point in the history
  • Loading branch information
svinota committed Jan 19, 2025
1 parent cb5539d commit ac4dad7
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions pyroute2/iproute/linux.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,8 +400,7 @@ def poll(self, method, command, timeout=10, interval=0.2, **spec):
# Diagnostics
#
async def probe(self, command, **kwarg):
'''
Run a network probe.
'''Run a network probe.
The API will trigger a network probe from the environment it
works in. For NetNS it will be the network namespace, for
Expand Down Expand Up @@ -1030,7 +1029,9 @@ async def vlan_filter(self, command, **kwarg):
Vlan filters is another approach to support vlans in Linux.
Before vlan filters were introduced, there was only one way
to bridge vlans: one had to create vlan interfaces and
then add them as ports::
then add them as ports:
.. aafig::
+------+ +----------+
net --> | eth0 | <--> | eth0.500 | <---+
Expand All @@ -1046,7 +1047,9 @@ async def vlan_filter(self, command, **kwarg):
It means that one has to create as many bridges, as there were
vlans. Vlan filters allow to bridge together underlying interfaces
and create vlans already on the bridge::
and create vlans already on the bridge:
.. aafig::
# v500 label shows which interfaces have vlan filter
Expand Down

0 comments on commit ac4dad7

Please sign in to comment.