blob: 642e87ab5ce16953fd6eb408a39ef03315073bec [file] [log] [blame]
Sangho Shin8a759742014-09-25 14:31:18 -07001package net.onrc.onos.core.matchaction.action;
2
Sangho Shin0df01982014-09-25 17:11:18 -07003import net.floodlightcontroller.core.IOF13Switch.NeighborSet;
Sangho Shin8a759742014-09-25 14:31:18 -07004import net.onrc.onos.core.util.Dpid;
5
6public class GroupAction implements Action {
Sangho Shin0df01982014-09-25 17:11:18 -07007 NeighborSet fwdSws;
Sangho Shin8a759742014-09-25 14:31:18 -07008
9 public GroupAction() {
Sangho Shin0df01982014-09-25 17:11:18 -070010 fwdSws = new NeighborSet();
Sangho Shin8a759742014-09-25 14:31:18 -070011 }
12
Sangho Shin43cee112014-09-25 16:43:34 -070013 public void addSwitch(Dpid d) {
Sangho Shin0df01982014-09-25 17:11:18 -070014 fwdSws.addDpid(d);
Sangho Shin8a759742014-09-25 14:31:18 -070015 }
16
Srikanth Vavilapalli68144302014-10-08 15:55:24 -070017 public void setEdgeLabel(int edgeLabel) {
18 fwdSws.setEdgeLabel(edgeLabel);
19 }
20
Sangho Shin0df01982014-09-25 17:11:18 -070021 public NeighborSet getDpids() {
Sangho Shin8a759742014-09-25 14:31:18 -070022 return fwdSws;
23 }
24}