Stats Improvement
diff --git a/cli/cli/c_actions.py b/cli/cli/c_actions.py
index 3c9adb0..e06819b 100755
--- a/cli/cli/c_actions.py
+++ b/cli/cli/c_actions.py
@@ -2019,10 +2019,9 @@
if format:
#
detail = command_display_rest_join_entries(table_format, data, entries, detail)
-
- if 'realtimestats' in data and data['realtimestats'] == 'flow':
- entries = sdnsh.fix_realtime_flows(entries)
- check_single_entry = False
+ #if 'realtimestats' in data and data['realtimestats'] == 'flow':
+ # entries = sdnsh.fix_realtime_flows(entries)
+ # check_single_entry = False
if 'realtimestats' in data and data['realtimestats'] == 'features':
for entry in entries:
diff --git a/cli/cli/desc/version200/core.py b/cli/cli/desc/version200/core.py
index 5085216..cca3240 100755
--- a/cli/cli/desc/version200/core.py
+++ b/cli/cli/desc/version200/core.py
@@ -155,7 +155,7 @@
'tech-support',
),
}
-"""
+
SHOW_FLOW_ENTRY_COMMAND_DESCRIPTION = {
'name' : 'show',
'obj-type' : 'flow-entry',
@@ -186,7 +186,7 @@
)
}
-
+"""
SHOW_FIREWALL_COMMAND_DESCRIPTION = {
'name' : 'show',
'obj-type' : 'firewall-rule',
diff --git a/cli/cli/desc/version200/flow_entry.py b/cli/cli/desc/version200/flow_entry.py
index bbb49f9..dfe9449 100755
--- a/cli/cli/desc/version200/flow_entry.py
+++ b/cli/cli/desc/version200/flow_entry.py
@@ -15,7 +15,7 @@
#
import fmtcnv
-"""
+
FLOW_ENTRY_SUBMODE_COMMAND_DESCRIPTION = {
'name' : 'flow-entry',
'mode' : 'config-switch*',
@@ -489,4 +489,4 @@
},
},
}
-"""
+
diff --git a/cli/sdncon/controller/models.py b/cli/sdncon/controller/models.py
index e678aa2..1181f32 100755
--- a/cli/sdncon/controller/models.py
+++ b/cli/sdncon/controller/models.py
@@ -1027,7 +1027,7 @@
FIELD_INFO = (
{'name': 'switch_interface', 'rest_name': 'switch-interface'},
)
-"""
+
#
# ------------------------------------------------------------
@@ -1207,7 +1207,7 @@
{'name': 'tp_dst', 'rest_name': 'dst-port'},
{'name': 'actions', 'rest_name': 'actions'},
)
-"""
+
#
# ------------------------------------------------------------
diff --git a/cli/sdncon/rest/views.py b/cli/sdncon/rest/views.py
index 44af953..c8ff42e 100755
--- a/cli/sdncon/rest/views.py
+++ b/cli/sdncon/rest/views.py
@@ -404,6 +404,7 @@
This returns realtime statistics (flows, ports, table, aggregate,
desc, ...) for a dpid by calling the localhost sdnplatform
"""
+ #raise RestInvalidMethodException()
if request.method != 'GET':
raise RestInvalidMethodException()
#url = controller_url('core', 'switch', dpid, stattype, 'json')
@@ -412,6 +413,7 @@
if stattype == 'groupdesc':
stattype = 'groupDesc'
url = "http://localhost:8080/wm/floodlight/core/switch/%s/%s/json" % (dpid, stattype)
+ #url ="http://localhost:8080/wm/floodlight/core/switch/00:00:00:00:00:00:00:01/flow/json"
return get_sdnplatform_response(url)
@safe_rest_view