Sangho Shin | 8a75974 | 2014-09-25 14:31:18 -0700 | [diff] [blame] | 1 | package net.onrc.onos.core.matchaction.action; |
2 | |||||
Sangho Shin | 0df0198 | 2014-09-25 17:11:18 -0700 | [diff] [blame] | 3 | import net.floodlightcontroller.core.IOF13Switch.NeighborSet; |
Sangho Shin | 8a75974 | 2014-09-25 14:31:18 -0700 | [diff] [blame] | 4 | import net.onrc.onos.core.util.Dpid; |
5 | |||||
6 | public class GroupAction implements Action { | ||||
Sangho Shin | 0df0198 | 2014-09-25 17:11:18 -0700 | [diff] [blame] | 7 | NeighborSet fwdSws; |
Sangho Shin | 15273b6 | 2014-10-16 22:22:05 -0700 | [diff] [blame] | 8 | int groupId; |
Sangho Shin | 8165544 | 2014-10-20 14:22:46 -0700 | [diff] [blame] | 9 | String tunnelId; |
Sangho Shin | 8a75974 | 2014-09-25 14:31:18 -0700 | [diff] [blame] | 10 | |
11 | public GroupAction() { | ||||
Sangho Shin | 0df0198 | 2014-09-25 17:11:18 -0700 | [diff] [blame] | 12 | fwdSws = new NeighborSet(); |
Sangho Shin | 8a75974 | 2014-09-25 14:31:18 -0700 | [diff] [blame] | 13 | } |
14 | |||||
Sangho Shin | 43cee11 | 2014-09-25 16:43:34 -0700 | [diff] [blame] | 15 | public void addSwitch(Dpid d) { |
Sangho Shin | 0df0198 | 2014-09-25 17:11:18 -0700 | [diff] [blame] | 16 | fwdSws.addDpid(d); |
Sangho Shin | 8a75974 | 2014-09-25 14:31:18 -0700 | [diff] [blame] | 17 | } |
18 | |||||
Srikanth Vavilapalli | 6814430 | 2014-10-08 15:55:24 -0700 | [diff] [blame] | 19 | public void setEdgeLabel(int edgeLabel) { |
20 | fwdSws.setEdgeLabel(edgeLabel); | ||||
21 | } | ||||
22 | |||||
Sangho Shin | 0df0198 | 2014-09-25 17:11:18 -0700 | [diff] [blame] | 23 | public NeighborSet getDpids() { |
Sangho Shin | 8a75974 | 2014-09-25 14:31:18 -0700 | [diff] [blame] | 24 | return fwdSws; |
25 | } | ||||
Sangho Shin | 15273b6 | 2014-10-16 22:22:05 -0700 | [diff] [blame] | 26 | |
27 | public void setGroupId(int id) { | ||||
28 | this.groupId = id; | ||||
29 | } | ||||
30 | |||||
31 | public int getGroupId() { | ||||
32 | return this.groupId; | ||||
33 | } | ||||
Sangho Shin | 8165544 | 2014-10-20 14:22:46 -0700 | [diff] [blame] | 34 | |
35 | public void setTunnelId(String tid) { | ||||
36 | this.tunnelId = tid; | ||||
37 | } | ||||
38 | |||||
39 | public String getTunnelId() { | ||||
40 | return tunnelId; | ||||
41 | } | ||||
Sangho Shin | 8a75974 | 2014-09-25 14:31:18 -0700 | [diff] [blame] | 42 | } |