private final Matches matches;
private final Long nsp;
private final Short nsi;
+ private final Short nsl;
private final String destinationIp;
private final String firstHopIp;
private ClassifierEntry(EntryType entryType, NodeId node, InterfaceKey interfaceKey, String connector,
- Matches matches, Long nsp, Short nsi, String destinationIp, String firstHopIp) {
+ Matches matches, Long nsp, Short nsi, Short nsl, String destinationIp,
+ String firstHopIp) {
this.entryType = entryType;
this.node = node;
this.interfaceKey = interfaceKey;
this.matches = matches;
this.nsp = nsp;
this.nsi = nsi;
+ this.nsl = nsl;
this.destinationIp = destinationIp;
this.firstHopIp = firstHopIp;
}
matches,
nsp,
nsi,
+ nsl,
destinationIp,
firstHopIp);
}
&& Objects.equals(nsp, other.nsp)
&& Objects.equals(nsi, other.nsi)
&& Objects.equals(destinationIp, other.destinationIp)
+ && Objects.equals(nsl, other.nsl)
&& Objects.equals(firstHopIp, other.firstHopIp);
}
.add("matches", matches)
.add("nsp", nsp)
.add("nsi", nsi)
+ .add("nsl", nsl)
.add("destinationIp", destinationIp)
.add("firstHopIp", firstHopIp)
.toString();
classifierEntryRenderer.renderIngress(interfaceKey);
break;
case PATH_ENTRY_TYPE:
- classifierEntryRenderer.renderPath(node, nsp, firstHopIp);
+ classifierEntryRenderer.renderPath(node, nsp, nsi, nsl, firstHopIp);
break;
case MATCH_ENTRY_TYPE:
classifierEntryRenderer.renderMatch(node, connector, matches, nsp, nsi);
classifierEntryRenderer.suppressIngress(interfaceKey);
break;
case PATH_ENTRY_TYPE:
- classifierEntryRenderer.suppressPath(node, nsp, firstHopIp);
+ classifierEntryRenderer.suppressPath(node, nsp, nsi, nsl, firstHopIp);
break;
case MATCH_ENTRY_TYPE:
classifierEntryRenderer.suppressMatch(node, connector, matches, nsp, nsi);
null,
null,
null,
+ null,
null);
}
null,
null,
null,
+ null,
null);
}
*
* @param node the classifier node identifier.
* @param nsp the path identifier.
+ * @param nsi the path starting index.
+ * @param nsl the path length.
* @param firstHopIp the first SFF ip address. Null if the SFF is nodeId.
* @return the {@code ClassifierEntry}.
*/
- public static ClassifierEntry buildPathEntry(NodeId node, Long nsp, String firstHopIp) {
+ public static ClassifierEntry buildPathEntry(NodeId node, Long nsp, short nsi, short nsl,
+ String firstHopIp) {
return new ClassifierEntry(
EntryType.PATH_ENTRY_TYPE,
node,
null,
null,
nsp,
- null,
+ nsi,
+ nsl,
null,
firstHopIp);
}
nsp,
nsi,
null,
+ null,
null);
}
null,
null,
null,
+ null,
destinationIp,
null);
}