blob: 3a27267cfbc8c4ed61f69a3d79352c77fe35e462 [file] [log] [blame]
package net.onrc.onos.apps.segmentrouting.web;
import net.onrc.onos.core.matchaction.match.PacketMatch;
/**
* Contains the policies info of the segment router that
* are exposed, through REST API
*
*/
public class SegmentRouterPolicyInfo {
private String policyId;
private int policyType;
private int priority;
private String tunnelId = null;
private PacketMatch match;
public SegmentRouterPolicyInfo(String Id,int type,String tunnelUsed, int ppriority,PacketMatch flowEntries){
this.policyId = Id;
this.policyType = type;
this.tunnelId =tunnelUsed;
this.priority = ppriority;
this.match = flowEntries;
}
public String getPolicyId(){
return this.policyId;
}
public int getPolicyType(){
return this.policyType;
}
public String getTunnelId(){
return this.tunnelId;
}
public int getPriority(){
return this.priority;
}
public PacketMatch getMatch(){
return this.match;
}
}