add sorting for few more commands
diff --git a/cli/cli/desc/version200/policy.py b/cli/cli/desc/version200/policy.py
index a7642d1..9bf94df 100644
--- a/cli/cli/desc/version200/policy.py
+++ b/cli/cli/desc/version200/policy.py
@@ -333,6 +333,7 @@
'token' : 'policy',
'field' : 'showpolicy',
'action' : 'display-rest',
+ 'sort' : ['policyId',],
'doc' : 'switch|show',
'url' : [
'showpolicy',
diff --git a/cli/cli/desc/version200/router.py b/cli/cli/desc/version200/router.py
index 57bc3bc..d0383ca 100644
--- a/cli/cli/desc/version200/router.py
+++ b/cli/cli/desc/version200/router.py
@@ -28,6 +28,7 @@
'token' : 'router',
'field' : 'router',
'action' : 'display-rest',
+ 'sort' : ['dpid',],
'doc' : 'switch|show',
'url' : [
'routers',
@@ -80,6 +81,7 @@
'port', 'adjacency'
),
'action' : 'display-rest',
+ 'sort' : ['portNo'],
'url' : 'router/%(dpid)s/%(routerrealtimestats)s',
'rest-type' : 'dict-of-list-of-switch',
'format' : 'router_%(routerrealtimestats)s',
diff --git a/cli/cli/desc/version200/tunnel.py b/cli/cli/desc/version200/tunnel.py
index 0ef077e..29f1044 100644
--- a/cli/cli/desc/version200/tunnel.py
+++ b/cli/cli/desc/version200/tunnel.py
@@ -158,6 +158,7 @@
{
'token' : 'tunnel',
'field' : 'showtunnel',
+ 'sort' : ['tunnelId',],
'action' : 'display-rest',
'doc' : 'switch|show',
'url' : [
diff --git a/src/main/java/net/onrc/onos/apps/segmentrouting/web/SegmentRouterPortInfo.java b/src/main/java/net/onrc/onos/apps/segmentrouting/web/SegmentRouterPortInfo.java
index 104ad13..085c0f2 100644
--- a/src/main/java/net/onrc/onos/apps/segmentrouting/web/SegmentRouterPortInfo.java
+++ b/src/main/java/net/onrc/onos/apps/segmentrouting/web/SegmentRouterPortInfo.java
@@ -10,7 +10,6 @@
*/
public class SegmentRouterPortInfo {
- //TODO set attributes to private and provide setter and getter.
private String subnetIp= null;
private Port port = null;
private List<Integer> adjacency = null;