-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
29 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
@open_flow13 | ||
Feature: Pio::DecrementIpTtl | ||
|
||
Scenario: new | ||
When I try to create an OpenFlow action with: | ||
""" | ||
Pio::DecrementIpTtl.new | ||
""" | ||
Then it should finish successfully | ||
And the action has the following fields and values: | ||
| field | value | | ||
| action_type | 24 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
require 'pio/open_flow/action' | ||
|
||
module Pio | ||
module OpenFlow13 | ||
# Decrements IP TTL | ||
class DecrementIpTtl < OpenFlow::Action | ||
action_header action_type: 24, action_length: 8 | ||
string :padding, length: 4 | ||
|
||
def initialize | ||
super({}) | ||
end | ||
end | ||
end | ||
end |