commit | 937cf4293f0806d602e06e4b2c0fcf11e9e8aaa5 | [log] [tgz] |
---|---|---|
author | MaoLu <Lu.Mao@molex.com> | Fri Mar 03 23:31:46 2017 -0800 |
committer | Yuta HIGUCHI <y-higuchi@onlab.us> | Mon Mar 13 05:52:42 2017 +0000 |
tree | 279f50d072dbbf174c559ba58b2963bf3231c555 | |
parent | 215dd81bcfc6b8d3a1bcba69fe9da2f6da2b50f0 [diff] |
change roadm app to support EDFA/ROADM/OPS devices, add OPS PowerConfig/LambdaQuery behaviour Change-Id: Ieb6de727e766fdeb63740c0704f83fd11e44b935
diff --git a/core/api/src/main/java/org/onosproject/ui/RequestHandler.java b/core/api/src/main/java/org/onosproject/ui/RequestHandler.java index d18f633..aa53f00 100644 --- a/core/api/src/main/java/org/onosproject/ui/RequestHandler.java +++ b/core/api/src/main/java/org/onosproject/ui/RequestHandler.java
@@ -150,4 +150,15 @@ protected boolean bool(ObjectNode node, String key) { return JsonUtils.bool(node, key); } + + /** + * Returns the specified node property as a number. + * + * @param node object node + * @param key property name + * @return property as a number + */ + protected long number(ObjectNode node, String key) { + return JsonUtils.number(node, key); + } }