Skip to content

Commit

Permalink
connectivity: Add IPFamily() to Action
Browse files Browse the repository at this point in the history
I need to be able to access this field when I'm using the connectivity
package as a library.

Signed-off-by: Michi Mutsuzaki <[email protected]>
  • Loading branch information
michi-covalent authored and tklauser committed Nov 14, 2023
1 parent a06efa5 commit a5beeef
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions connectivity/check/action.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,11 @@ func (a *Action) CmdOutput() string {
return a.cmdOutput
}

// IPFamily returns the IPFamily used for this test action.
func (a *Action) IPFamily() features.IPFamily {
return a.ipFam
}

// Run executes function f.
//
// This method is to be called from a Scenario implementation.
Expand Down

0 comments on commit a5beeef

Please sign in to comment.