Change example to use prefix/mask in elements added to affinity group. 03/2303/1
authorSuchi Raman <suchi.raman@plexxi.com>
Thu, 31 Oct 2013 18:30:30 +0000 (14:30 -0400)
committerSuchi Raman <suchi.raman@plexxi.com>
Thu, 31 Oct 2013 18:30:30 +0000 (14:30 -0400)
Signed-off-by: Suchi Raman <suchi.raman@plexxi.com>
scripts/affinity.py

index fcdb7d28681949ceb74a63c6a16cf7a34ff20d8e..edfd32de6d9a4ce245cf0bedaa59caad6309bf61 100644 (file)
@@ -53,8 +53,12 @@ def waypoint_init():
     put_url = 'http://localhost:8080/affinity/nb/v2/affinity/default/create/link/inflows/from/clients/to/webservers'
     rest_method(put_url, "PUT")
 
-    print "add ip to webservers"
-    put_url = 'http://localhost:8080/affinity/nb/v2/affinity/default/group/webservers/add/ip/10.0.0.1'
+#    print "add ip to webservers"
+#    put_url = 'http://localhost:8080/affinity/nb/v2/affinity/default/group/webservers/add/ip/10.0.0.1'
+#    rest_method(put_url, "PUT")
+
+    print "add subnet to webservers"
+    put_url = 'http://localhost:8080/affinity/nb/v2/affinity/default/group/webservers/addsubnet/ipprefix/10.0.0.1/mask/31'
     rest_method(put_url, "PUT")
 
 #    print "add ip to webservers"