openflow/actions: nx_{pop|push}_mpls are deprecated in OpenFlow13
This commit is contained in:
parent
9f770fc995
commit
1ac5aa265e
7 changed files with 14 additions and 59 deletions
|
|
@ -13,6 +13,9 @@ defmodule Openflow.Action.NxSample do
|
|||
alias Openflow.Action.Experimenter
|
||||
|
||||
def new(options \\ []) do
|
||||
(is_integer(options[:probability]) and options[:probability] > 0) ||
|
||||
raise("probability must be greater than 0")
|
||||
|
||||
%NxSample{
|
||||
probability: options[:probability] || 0,
|
||||
collector_set_id: options[:collector_set_id] || 0,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue