Minor CLI related fixes:
* Change the default intent type from CONSTRAINED_SHORTEST_PATH
to SHORTEST_PATH so it is consistent with the older Ruby script.
* Add documentation about the installation of CLI-related Python packages.
Change-Id: Ie9443b61b497d7ffa7b6877b58d297fb6c8f2995
diff --git a/README.md b/README.md
index f8c9852..01e7994 100644
--- a/README.md
+++ b/README.md
@@ -28,7 +28,7 @@
---------------------
1. Required packages
- $ sudo apt-get install maven python-flask python-cmd2
+ $ sudo apt-get install maven python-flask python-cmd2 python-pyparsing
2. ZooKeeper
diff --git a/onoscli b/onoscli
index 20f9bc7..0d7caee 100755
--- a/onoscli
+++ b/onoscli
@@ -21,7 +21,8 @@
#
# INSTALLATION NOTES: MUST install Python cmd2 module. E.g., on Ubuntu:
# sudo apt-get install python-cmd2
-# On older Ubuntu installations (e.g., Ubuntu-12.04), install also:
+# On older Ubuntu installations (e.g., Ubuntu-12.04 or Ubuntu-13.04), install
+# also:
# sudo apt-get install python-pyparsing
#
@@ -283,7 +284,7 @@
oper = {}
# Create the POST payload
oper['intentId'] = args.intent_id
- oper['intentType'] = 'CONSTRAINED_SHORTEST_PATH' # XXX: Hardcoded
+ oper['intentType'] = 'SHORTEST_PATH' # XXX: Hardcoded
oper['staticPath'] = False # XXX: Hardcoded
oper['srcSwitchDpid'] = args.src_dpid
oper['srcSwitchPort'] = args.src_port