Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ofctrl/fgraphFlow.go
Original file line number Diff line number Diff line change
Expand Up @@ -975,11 +975,11 @@ func (self *Flow) SetTunnelDstIP(dst net.IP) error {
return self.AddAction(act)
}

func (self *Flow) AddAction(act Action) error {
func (self *Flow) AddAction(acts ...Action) error {
self.lock.Lock()
defer self.lock.Unlock()

self.flowActions = append(self.flowActions, act)
self.flowActions = append(self.flowActions, acts...)

if self.isInstalled {
self.install()
Expand Down
4 changes: 1 addition & 3 deletions ofctrl/ofAction.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,11 @@ func (a *NXController) GetActionType() string {
}

type OutputAction struct {
actionType string
outputPort uint32
}

func NewOutputAction(actionType string, outputPort uint32) *OutputAction {
func NewOutputAction(outputPort uint32) *OutputAction {
outputAction := new(OutputAction)
outputAction.actionType = actionType
outputAction.outputPort = outputPort

return outputAction
Expand Down