Added instructions to demo.py, and copyright notices to it and other scripts. 64/3364/1
authorKatrina LaCurts <katrina.lacurts@plexxi.com>
Mon, 2 Dec 2013 19:00:12 +0000 (14:00 -0500)
committerKatrina LaCurts <katrina.lacurts@plexxi.com>
Mon, 2 Dec 2013 19:00:12 +0000 (14:00 -0500)
Signed-off-by: Katrina LaCurts <katrina.lacurts@plexxi.com>
scripts/affinity_control.py
scripts/analytics.py
scripts/demo.py
scripts/subnet.py

index 540fea9d30fc048658c8a21186f1e09318b41cae..2a249fc928e0779f70b571534e75ef36e9a46aa0 100644 (file)
@@ -1,5 +1,13 @@
 #!/usr/local/bin/python
 
+'''
+Copyright (c) 2013 Plexxi, Inc.  All rights reserved.
+
+This program and the accompanying materials are made available under the
+terms of the Eclipse Public License v1.0 which accompanies this distribution,
+and is available at http://www.eclipse.org/legal/epl-v10.html
+'''
+
 import httplib2
 import json
 
index f05fbb8b5e3be995d43feaf16fdcaf1f2fd1c9c9..f0308dd17d142aa70a10e9aa743996bd0e05f58c 100644 (file)
@@ -1,5 +1,13 @@
 #!/usr/local/bin/python
 
+'''
+Copyright (c) 2013 Plexxi, Inc.  All rights reserved.
+
+This program and the accompanying materials are made available under the
+terms of the Eclipse Public License v1.0 which accompanies this distribution,
+and is available at http://www.eclipse.org/legal/epl-v10.html
+'''
+
 import httplib2
 import json
 import sys
index a5a8caa1a37b5e86ee4c7b5bea5e2494c32e5b0c..729229f3f2f578d5d8ea65a48f94bc8d1fc44efd 100644 (file)
@@ -1,5 +1,13 @@
 #!/usr/local/bin/python
 
+'''
+Copyright (c) 2013 Plexxi, Inc.  All rights reserved.
+
+This program and the accompanying materials are made available under the
+terms of the Eclipse Public License v1.0 which accompanies this distribution,
+and is available at http://www.eclipse.org/legal/epl-v10.html
+'''
+
 import httplib2
 import json
 import signal
@@ -11,6 +19,20 @@ from affinity_control import AffinityControl
 from subnet import SubnetControl
 from stats import Stats
 
+'''
+The instructions for running this demo are located at:
+https://wiki.opendaylight.org/view/Project_Proposals:Affinity_Metadata_Service#Current_Status
+
+Briefly:
+1.  In config.ini, make sure affinity jars are loaded and that of.flowStatsPollInterval = 1
+2.  Start the controller
+3.  Start mininet with a 2-level tree topology
+4.  In mininet:
+     > pingall
+     > h3 ping h1
+You will see an anomaly detected in demo.py's output, and the pings between h3 and h1 will halt.
+'''
+
 # If True, SIG_INT has been captured
 global sigint
 sigint = False
index d88ba2a94ed649c3885bf1b2af4d816a80b6e199..c561717d73daa7fadedf48cb1081e93d74db0e90 100644 (file)
@@ -1,5 +1,13 @@
 #!/usr/bin/python
 
+'''
+Copyright (c) 2013 Plexxi, Inc.  All rights reserved.
+
+This program and the accompanying materials are made available under the
+terms of the Eclipse Public License v1.0 which accompanies this distribution,
+and is available at http://www.eclipse.org/legal/epl-v10.html
+'''
+
 import httplib2
 import json
 import sys