From: Ondrej Lichtner <olichtne(a)redhat.com>
The following patch set brings in experimental support for Open vSwitch bridges
on linux machines. Naturally it requires the involved slave machines to have
open vswitch installed.
At the moment this is very experimental and anything can change, including the
recipe format. I'll be happy to reply to any questions or suggestions.
An example recipe that you can try:
<lnstrecipe>
<network>
<host id="1">
<params>
<param name="os" value="fedora20"/>
</params>
<interfaces>
<eth id="t1" label="ttnet1"/>
<eth id="t2" label="ttnet2"/>
<ovs_bridge id="xyz">
<define>
<alias name="aa" value="bb"/>
</define>
<slaves>
<slave id="t1" vlan_tag="1"/>
<slave id="t2" vlan_tag="1"/>
</slaves>
<bond id="mfg">
<slaves>
<slave id="t1"/>
<slave id="t2"/>
</slaves>
</bond>
</ovs_bridge>
</interfaces>
</host>
<host id="2">
<interfaces>
<eth id="t1" label="ttnet1">
<addresses>
<address value="192.168.100.215/24"/>
</addresses>
</eth>
</interfaces>
</host>
<host id="3">
<interfaces>
<eth id="t2" label="ttnet2">
<addresses>
<address value="192.168.100.216/24"/>
</addresses>
</eth>
</interfaces>
</host>
</network>
<task>
<run host="2" module="IcmpPing" timeout="30">
<options>
<option name="addr" value="{ip(3,t2)}"/>
<option name="count" value="40"/>
<option name="interval" value="0"/>
<option name="limit_rate" value="95"/>
</options>
</run>
</task>
</lnstrecipe>
Ondrej Lichtner (5):
schema-recipe.rng: add element ovs_bridge
RecipeParser: add support for ovs_bridge element
Controller: add support for ovs_conf
{Nm, Net}ConfigDevice: add support for OvS bridges
InterfaceManager: generate ovs_bridge interface names
lnst/Controller/Machine.py | 10 ++++-
lnst/Controller/NetTestController.py | 3 ++
lnst/Controller/RecipeParser.py | 60 +++++++++++++++++++++++---
lnst/Slave/InterfaceManager.py | 2 +-
lnst/Slave/NetConfigDevice.py | 82 +++++++++++++++++++++++++++++++++++-
lnst/Slave/NmConfigDevice.py | 19 ++++++++-
schema-recipe.rng | 60 ++++++++++++++++++++++++++
7 files changed, 227 insertions(+), 9 deletions(-)
--
1.8.5.3
Show replies by thread