Package org.onosproject.segmentrouting
Interface Tunnel
-
- All Known Implementing Classes:
DefaultTunnel
public interface TunnelTunnel interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidallowToRemoveGroup(boolean ok)Sets the flag to allow to remove the group or not.intgroupId()Returns the group ID for the tunnel.Stringid()Returns the tunnel ID.booleanisAllowedToRemoveGroup()Checks if it is allowed to remove the group for the tunnel.List<Integer>labelIds()Returns Segment IDs for the tunnel including source and destination.voidsetGroupId(int groupId)Sets group ID for the tunnel.
-
-
-
Method Detail
-
id
String id()
Returns the tunnel ID.- Returns:
- tunnel ID
-
labelIds
List<Integer> labelIds()
Returns Segment IDs for the tunnel including source and destination.- Returns:
- List of Node ID
-
groupId
int groupId()
Returns the group ID for the tunnel.- Returns:
- group ID
-
setGroupId
void setGroupId(int groupId)
Sets group ID for the tunnel.- Parameters:
groupId- group identifier
-
allowToRemoveGroup
void allowToRemoveGroup(boolean ok)
Sets the flag to allow to remove the group or not.- Parameters:
ok- the flag; true - allow to remove
-
isAllowedToRemoveGroup
boolean isAllowedToRemoveGroup()
Checks if it is allowed to remove the group for the tunnel.- Returns:
- true if allowed, false otherwise
-
-