* Add test of 2 links between same groups, one in each direction of flow. 52/5352/1
authorSuchi Raman <suchi.raman@plexxi.com>
Sun, 16 Feb 2014 11:17:18 +0000 (06:17 -0500)
committerSuchi Raman <suchi.raman@plexxi.com>
Sun, 16 Feb 2014 11:17:18 +0000 (06:17 -0500)
Signed-off-by: Suchi Raman <suchi.raman@plexxi.com>
scripts/affinity.py

index 4bae8f1cc1acb8830a9c9e70b114c547745e540a..095253ce0dbbbcd2fe79d1133174b483843ef9e6 100644 (file)
@@ -132,7 +132,11 @@ def tap_example():
     rest_method(put_url, "PUT")
 
     print "create link A -> B"
-    put_url = 'http://localhost:8080/affinity/nb/v2/affinity/default/create/link/a_to_b/from/b/to/a'
+    put_url = 'http://localhost:8080/affinity/nb/v2/affinity/default/create/link/a_to_b/from/a/to/b'
+    rest_method(put_url, "PUT")
+
+    print "create link B -> A"
+    put_url = 'http://localhost:8080/affinity/nb/v2/affinity/default/create/link/b_to_a/from/b/to/a'
     rest_method(put_url, "PUT")
 
     print "add ip addresses to A"
@@ -213,7 +217,9 @@ def test_tap_1():
 def test_tap_2(): 
     tap_example()
     set_tap('a_to_b', '10.0.0.2')
+    set_tap('b_to_a', '10.0.0.2')
     get_affinity_link('a_to_b')
+    get_affinity_link('b_to_a')
     enable_affinity() # Tap to '10.0.0.2'.
 
 def add_isolate():