Class: Trema::PortStatusModify

Inherits:
PortStatus show all
Defined in:
ruby/trema/port-status-modify.rb

Overview

As physical ports of the datapath are modified, the controller needs to be informed with this message.

Constant Summary

Constants inherited from PortStatus

Trema::PortStatus::OFPPR_ADD, Trema::PortStatus::OFPPR_DELETE, Trema::PortStatus::OFPPR_MODIFY

Instance Method Summary collapse

Methods inherited from PortStatus

#datapath_id, #phy_port, #reason, #transaction_id

Constructor Details

#initialize(options) ⇒ PortStatusModify

Creates a port-modified message.

Examples:

PortStatusModify.new(
  :datapath_id => 0xabc,
  :transaction_id => 123,
  :phy_port => port
)

Options Hash (options):

  • :datapath_id (Number)

    message originator identifier.

  • :transaction_id (Number)

    unsolicited message transaction_id is zero.

  • :phy_port (Port)

    a Trema::Port object describing the properties of the port.



49
50
51
# File 'ruby/trema/port-status-modify.rb', line 49

def initialize options
  super options.merge( :reason => OFPPR_MODIFY )
end