diff options
| author | Bill Peck <bpeck@redhat.com> | 2013-01-23 09:52:27 -0500 |
|---|---|---|
| committer | Bill Peck <bpeck@redhat.com> | 2013-01-23 09:52:27 -0500 |
| commit | e58085b207607a75442d03b4c1f8ec63ece6823c (patch) | |
| tree | de2482b1d10c215a1e6a940a71fa865c28d551e0 /kernel/networking/openvswitch/libvirt | |
| parent | 96a9c91aab12929de85442f7bf3b4b2d62469ae3 (diff) | |
| download | tests-e58085b207607a75442d03b4c1f8ec63ece6823c.tar.gz tests-e58085b207607a75442d03b4c1f8ec63ece6823c.tar.xz tests-e58085b207607a75442d03b4c1f8ec63ece6823c.zip | |
fixes for both add_interface commands
Diffstat (limited to 'kernel/networking/openvswitch/libvirt')
| -rwxr-xr-x | kernel/networking/openvswitch/libvirt/add_interface/runtest.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/networking/openvswitch/libvirt/add_interface/runtest.sh b/kernel/networking/openvswitch/libvirt/add_interface/runtest.sh index 1922c54..7cd1efe 100755 --- a/kernel/networking/openvswitch/libvirt/add_interface/runtest.sh +++ b/kernel/networking/openvswitch/libvirt/add_interface/runtest.sh @@ -45,9 +45,9 @@ add_interface() local guest=$1 local switch=$2 local slot=$(find_free_slot $guest) - sed -ie "0,/<\/interface>/ {/<\/interface>/ a\ + sed -ie "/<\/devices>/ i\ <interface type='bridge'>\n\<source bridge='$switch'\/>\n\<virtualport type='openvswitch'\/>\n\<model type='virtio'\/>\n\<address type='pci' domain='0x0000' bus='0x00' slot='$slot' function='0x0'\/>\n\<\/interface> -}" $guest +" $guest return $? } |
