Class: Dcmgr::NodeModules::OpenFlowForwardingEntry

Inherits:
Object
  • Object
show all
Defined in:
lib/dcmgr/node_modules/openflow_controller.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(mac, port_no) ⇒ OpenFlowForwardingEntry

Returns a new instance of OpenFlowForwardingEntry.



690
691
692
693
# File 'lib/dcmgr/node_modules/openflow_controller.rb', line 690

def initialize mac, port_no
  @mac = mac
  @port_no = port_no
end

Instance Attribute Details

#macObject (readonly)

Returns the value of attribute mac.



687
688
689
# File 'lib/dcmgr/node_modules/openflow_controller.rb', line 687

def mac
  @mac
end

#port_noObject (readonly)

Returns the value of attribute port_no.



688
689
690
# File 'lib/dcmgr/node_modules/openflow_controller.rb', line 688

def port_no
  @port_no
end

Instance Method Details

#update(port_no) ⇒ Object



695
696
697
# File 'lib/dcmgr/node_modules/openflow_controller.rb', line 695

def update port_no
  @port_no = port_no
end