PolicyEnforcer could not find classifier-instance
name because it has been refering to a name of classifier-ref.
Change-Id: Iff08420d51059a79297b15f7938689123e1fb699
Signed-off-by: Tomas Cechvala <tcechval@cisco.com>
// extension and data plane support - in 2.4. Will need to handle
// case where we are working with mix of nodes.
- ClassifierInstance ci = contractTenant.getClassifier(cr.getName());
+ ClassifierInstance ci = contractTenant.getClassifier(cr.getInstanceName());
if (ci == null) {
// XXX TODO fail the match and raise an exception
- LOG.warn("Classifier instance {} not found", cr.getName().getValue());
+ LOG.warn("Classifier instance {} not found", cr.getInstanceName().getValue());
return;
}
Classifier cfier = SubjectFeatures.getClassifier(ci.getClassifierDefinitionId());
.setClassifierRef(ImmutableList.of(new ClassifierRefBuilder()\r
.setName(new ClassifierName("tcp_dst_80"))\r
.setDirection(direction)\r
+ .setInstanceName(new ClassifierName("tcp_dst_80"))\r
.build()))\r
.build()));\r
}\r
for (String refName : refNamesAndDirections.keySet()) {\r
refs.add(new ClassifierRefBuilder().setName(new ClassifierName(refName))\r
.setDirection(refNamesAndDirections.get(refName))\r
+ .setInstanceName(new ClassifierName(refName))\r
.build());\r
}\r
return refs;\r