From: Ondrej Lichtner <olichtne(a)redhat.com>
Second version of the patchset that brings OvS support to LNST. The difference
is the way we define vlans - instead of using the vlan_tag/vlan_tags attributes
use the <vlan> element like this:
<vlan tag="1">
<slaves>
<slave id="port1"/>
<slave id="port2"/>
</slaves>
</vlan>
If a single port is present in more than one vlan it becomes a trunk port.
The previous example recipe therefore becomes this:
<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"/>
<slave id="t2"/>
</slaves>
<vlan tag="1">
<slaves>
<slave id="t1"/>
<slave id="t2"/>
</slaves>
</vlan>
<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 | 79 ++++++++++++++++++++++++++++++---
lnst/Slave/InterfaceManager.py | 2 +-
lnst/Slave/NetConfigDevice.py | 86 +++++++++++++++++++++++++++++++++++-
lnst/Slave/NmConfigDevice.py | 19 +++++++-
schema-recipe.rng | 78 ++++++++++++++++++++++++++++++++
7 files changed, 268 insertions(+), 9 deletions(-)
--
1.8.5.3
Show replies by date