X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fnorthbound%2Fflowprogrammer%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fflowprogrammer%2Fnorthbound%2FFlowProgrammerNorthbound.java;h=6bccc2d2e9ff25bde94925be51f4555f409c5e98;hp=d3cbc4aceed0ad88a887d3a870a7d184b35a85df;hb=65c9b2ea72201b67ece5d6e5e210857d69df743c;hpb=f3bdffc96f0c221111faeef07db2a6b975f56463;ds=sidebyside diff --git a/opendaylight/northbound/flowprogrammer/src/main/java/org/opendaylight/controller/flowprogrammer/northbound/FlowProgrammerNorthbound.java b/opendaylight/northbound/flowprogrammer/src/main/java/org/opendaylight/controller/flowprogrammer/northbound/FlowProgrammerNorthbound.java index d3cbc4acee..6bccc2d2e9 100644 --- a/opendaylight/northbound/flowprogrammer/src/main/java/org/opendaylight/controller/flowprogrammer/northbound/FlowProgrammerNorthbound.java +++ b/opendaylight/northbound/flowprogrammer/src/main/java/org/opendaylight/controller/flowprogrammer/northbound/FlowProgrammerNorthbound.java @@ -322,7 +322,9 @@ public class FlowProgrammerNorthbound { } Status status = frm.addStaticFlow(flowConfig.getValue()); + if (status.isSuccess()) { + NorthboundUtils.auditlog("Flow", username, "added", name, containerName); return Response.status(Response.Status.CREATED).build(); } throw new InternalServerErrorException(status.getDescription()); @@ -385,6 +387,7 @@ public class FlowProgrammerNorthbound { Status status = frm.removeStaticFlow(name, node); if (status.isSuccess()) { + NorthboundUtils.auditlog("Flow", username, "removed", name, containerName); return Response.ok().build(); } throw new InternalServerErrorException(status.getDescription()); @@ -446,6 +449,7 @@ public class FlowProgrammerNorthbound { Status status = frm.toggleStaticFlowStatus(staticFlow); if (status.isSuccess()) { + NorthboundUtils.auditlog("Flow", username, "toggled", name, containerName); return Response.ok().build(); } throw new InternalServerErrorException(status.getDescription());