commit | c81c45bbdeb2287753d08d050f71f07516f2f53e | [log] [tgz] |
---|---|---|
author | Charles Chan <rascov@gmail.com> | Thu Oct 20 17:02:44 2016 -0700 |
committer | Charles Chan <charles@onlab.us> | Fri Oct 21 17:36:57 2016 +0000 |
tree | ead0a00dfff497733cece77dc05a0ad699301af0 | |
parent | aa57d93048ee70b2055dffc1ec53e6c32daaac3d [diff] [blame] |
CLI command that shows all subnets configured in Segment Routing Change-Id: Ib03ec2039b763f3796548923883fc89913a1ceac
diff --git a/apps/segmentrouting/src/main/java/org/onosproject/segmentrouting/SegmentRoutingService.java b/apps/segmentrouting/src/main/java/org/onosproject/segmentrouting/SegmentRoutingService.java index f78d869..d8d155e 100644 --- a/apps/segmentrouting/src/main/java/org/onosproject/segmentrouting/SegmentRoutingService.java +++ b/apps/segmentrouting/src/main/java/org/onosproject/segmentrouting/SegmentRoutingService.java
@@ -15,7 +15,12 @@ */ package org.onosproject.segmentrouting; +import org.onlab.packet.Ip4Prefix; +import org.onosproject.net.DeviceId; + import java.util.List; +import java.util.Map; +import java.util.Set; /** * Segment Routing Service for REST API. @@ -109,4 +114,11 @@ * */ void rerouteNetwork(); + + /** + * Returns device-subnet mapping. + * + * @return device-subnet mapping + */ + Map<DeviceId, Set<Ip4Prefix>> getDeviceSubnetMap(); }