commit | 9816178949ca391ee98be71477ea69b65d305e43 | [log] [tgz] |
---|---|---|
author | Pier Ventre <pierventre@hotmail.com> | Mon Oct 31 15:00:01 2016 -0700 |
committer | Thomas Vachuska <tom@onlab.us> | Wed Nov 30 18:58:44 2016 +0000 |
tree | d3abf98ff2fc1624e1117eb3bfe690d02e057556 | |
parent | 958fd99bc2abeeefae2590c97f986307aac2a50d [diff] [blame] |
[CORD-578] MPLS ECMP configurable Changes: - Adds MPLS-ECMP option to SR configuration; - Updates the json examples; - Implements unit tests to verify the expected behaviors; Change-Id: I6a7f5d34161be7c85ecb76c9a09288d960aad3cb
diff --git a/apps/segmentrouting/src/main/java/org/onosproject/segmentrouting/SegmentRoutingManager.java b/apps/segmentrouting/src/main/java/org/onosproject/segmentrouting/SegmentRoutingManager.java index bd89102..81fb220 100644 --- a/apps/segmentrouting/src/main/java/org/onosproject/segmentrouting/SegmentRoutingManager.java +++ b/apps/segmentrouting/src/main/java/org/onosproject/segmentrouting/SegmentRoutingManager.java
@@ -468,6 +468,17 @@ } /** + * Returns the MPLS-ECMP configuration. + * + * @return MPLS-ECMP value + */ + public boolean getMplsEcmp() { + SegmentRoutingAppConfig segmentRoutingAppConfig = cfgService + .getConfig(this.appId, SegmentRoutingAppConfig.class); + return segmentRoutingAppConfig != null && segmentRoutingAppConfig.mplsEcmp(); + } + + /** * Returns the tunnel object with the tunnel ID. * * @param tunnelId Tunnel ID