Class: Pio::OpenFlow10::Features::Reply::Format

Inherits:
BinData::Record
  • Object
show all
Extended by:
Pio::OpenFlow::Format
Defined in:
lib/pio/open_flow10/features.rb

Overview

OpenFlow 1.0 Features Reply message

Instance Method Summary collapse

Methods included from Pio::OpenFlow::Format

extended, header

Instance Method Details

#physical_portsObject



93
94
95
96
97
# File 'lib/pio/open_flow10/features.rb', line 93

def physical_ports
  ports.select do |each|
    each.port_no <= Port16::MAX
  end
end

#portsObject



86
87
88
89
90
91
# File 'lib/pio/open_flow10/features.rb', line 86

def ports
  body.snapshot.ports.map do |each|
    each.instance_variable_set :@datapath_id, datapath_id
    each
  end
end