quality: Add test cases for queue_stats messages
This commit is contained in:
parent
599f1947db
commit
2bfccd693f
3 changed files with 75 additions and 12 deletions
|
|
@ -13,11 +13,12 @@ defmodule Openflow.Multipart.Queue.Request do
|
|||
|
||||
def ofp_type, do: 18
|
||||
|
||||
def new(options) do
|
||||
xid = Keyword.get(options, :xid, 0)
|
||||
port_no = Keyword.get(options, :port_number, :any)
|
||||
queue_id = Keyword.get(options, :queue_id, :all)
|
||||
%Request{xid: xid, port_number: port_no, queue_id: queue_id}
|
||||
def new(options \\ []) do
|
||||
%Request{
|
||||
xid: options[:xid] || 0,
|
||||
port_number: options[:port_number] || :any,
|
||||
queue_id: options[:queue_id] || :all
|
||||
}
|
||||
end
|
||||
|
||||
def read(<<port_no_int::32, queue_id_int::32>>) do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue