blob: 5dfdfaea54ff9bc80c36e30104a9ef23eaee3a23 [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
Sangho Shin0df01982014-09-25 17:11:18 -070017 public NeighborSet getDpids() {
Sangho Shin8a759742014-09-25 14:31:18 -070018 return fwdSws;
19 }
20}