Skip to content

Commit 2a0f99c

Browse files
authored
Merge pull request #109 from digitalocean/save-output
save output of ofproto/trace
2 parents 64e108b + cd45808 commit 2a0f99c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

ovs/app.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ func (a *AppService) ProtoTrace(bridge string, protocol Protocol, matches []Matc
5252

5353
pt := &ProtoTrace{
5454
CommandStr: fmt.Sprintf("ovs-appctl %s", strings.Join(args, " ")),
55+
RawOutput: out,
5556
}
5657
err = pt.UnmarshalText(out)
5758
if err != nil {

ovs/proto_trace.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ type ProtoTrace struct {
139139
FinalFlow *DataPathFlows
140140
DataPathActions DataPathActions
141141
FlowActions []string
142+
RawOutput []byte
142143
}
143144

144145
// UnmarshalText unmarshals ProtoTrace text into a ProtoTrace type.

0 commit comments

Comments
 (0)