Skip to content

Commit

Permalink
Initial implementation of the OpenFlow 1.2 driver
Browse files Browse the repository at this point in the history
This commit adds support for OF1.2 packet in, packet out, flow mod, and
flow statistics.
  • Loading branch information
soheilhy committed May 14, 2015
1 parent bb2ef2c commit 95b9014
Show file tree
Hide file tree
Showing 4 changed files with 518 additions and 22 deletions.
5 changes: 5 additions & 0 deletions nom/flow.go
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,11 @@ func (m Match) String() string {
return fmt.Sprintf("match(%v)", strings.Join(a, ","))
}

// AddField adds the field to the list of fields in the match.
func (m *Match) AddField(f Field) {
m.Fields = append(m.Fields, f)
}

// Clone creates a copy of the match.
func (m Match) Clone() Match {
clone := Match{
Expand Down
Loading

0 comments on commit 95b9014

Please sign in to comment.