Class: Dcmgr::NodeModules::OpenFlowForwardingEntry
- Inherits:
-
Object
- Object
- Dcmgr::NodeModules::OpenFlowForwardingEntry
- Defined in:
- lib/dcmgr/node_modules/openflow_controller.rb
Instance Attribute Summary collapse
-
#mac ⇒ Object
readonly
Returns the value of attribute mac.
-
#port_no ⇒ Object
readonly
Returns the value of attribute port_no.
Instance Method Summary collapse
-
#initialize(mac, port_no) ⇒ OpenFlowForwardingEntry
constructor
A new instance of OpenFlowForwardingEntry.
- #update(port_no) ⇒ Object
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
#mac ⇒ Object (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_no ⇒ Object (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 |