class Pio::OpenFlow::DatapathId

Datapath unique ID. The lower 48-bits are for a MAC address, while the upper 16-bits are implementer-defined.

Public Instance Methods

get() click to toggle source
# File lib/pio/open_flow/datapath_id.rb, line 23
def get
  datapath_id.to_i
end
set(value) click to toggle source
# File lib/pio/open_flow/datapath_id.rb, line 15
def set(value)
  unless value.unsigned_64bit?
    raise(ArgumentError,
          'Datapath ID should be an unsigned 64-bit integer.')
  end
  self.datapath_id = value
end