Wired up the match-action REST APIs to the MatchActionModule
Change-Id: Ifcbd27c83cac716435afb5f6869431d02500ce5b
diff --git a/src/main/java/net/onrc/onos/core/matchaction/web/MatchActionResource.java b/src/main/java/net/onrc/onos/core/matchaction/web/MatchActionResource.java
index 037ee88..20e68d3 100644
--- a/src/main/java/net/onrc/onos/core/matchaction/web/MatchActionResource.java
+++ b/src/main/java/net/onrc/onos/core/matchaction/web/MatchActionResource.java
@@ -5,8 +5,8 @@
import net.floodlightcontroller.restserver.CustomSerializerHelper;
import net.onrc.onos.core.matchaction.MatchAction;
+import net.onrc.onos.core.matchaction.MatchActionFloodlightService;
import net.onrc.onos.core.matchaction.MatchActionId;
-import net.onrc.onos.core.matchaction.MatchActionService;
import org.codehaus.jackson.JsonGenerator;
import org.codehaus.jackson.JsonProcessingException;
@@ -49,9 +49,9 @@
*/
@Get("json")
public Representation retrieve() {
- MatchActionService matchActionService =
- (MatchActionService) getContext().getAttributes()
- .get(MatchActionService.class.getCanonicalName());
+ MatchActionFloodlightService matchActionService =
+ (MatchActionFloodlightService) getContext().getAttributes()
+ .get(MatchActionFloodlightService.class.getCanonicalName());
Set<MatchAction> matchActions = matchActionService.getMatchActions();