diff mbox

[ovs-dev,6/6] Update localnet ovn test to use physical endpoints

Message ID 1458159951-21345-7-git-send-email-dball@vmware.com
State Deferred
Headers show

Commit Message

Darrell Ball March 16, 2016, 8:25 p.m. UTC
Signed-off-by: Darrell Ball <dball@vmware.com>
---
 tests/ovn.at | 3 +++
 1 file changed, 3 insertions(+)
diff mbox

Patch

diff --git a/tests/ovn.at b/tests/ovn.at
index 689e544..dac36c8 100644
--- a/tests/ovn.at
+++ b/tests/ovn.at
@@ -840,12 +840,15 @@  for i in 1 2; do
 
         if test $j -le 2; then
             ovn-nbctl lport-add $lswitch_name $ln_port_name
+            ovn-sbctl phys-endpt-add pe$i$j hv$i vif$i$j vlan 0 0
         else
             ovn-nbctl lport-add $lswitch_name $ln_port_name "" 101
+            ovn-sbctl phys-endpt-add pe$i$j hv$i vif$i$j vlan 101 101
         fi
         ovn-nbctl lport-set-addresses $ln_port_name unknown
         ovn-nbctl lport-set-type $ln_port_name localnet
         ovn-nbctl lport-set-options $ln_port_name network_name=phys
+        ovn-sbctl lport-bind-phys-endpt $ln_port_name pe$i$j
 
         ovn-nbctl lport-add $lswitch_name $lport_name
         ovn-nbctl lport-set-addresses $lport_name f0:00:00:00:00:$i$j