Class: IFCFG::Port
Instance Attribute Summary
Attributes inherited from OVS
Instance Method Summary collapse
-
#initialize(name, bridge) ⇒ Port
constructor
A new instance of Port.
Methods inherited from OVS
#del_key, exists?, #key, #key?, remove, #replace_key, #save, #set, #set_key, #to_s
Constructor Details
#initialize(name, bridge) ⇒ Port
Returns a new instance of Port.
75 76 77 78 79 80 81 |
# File 'lib/puppetx/redhat/ifcfg.rb', line 75 def initialize(name, bridge) super(name) set_key('TYPE', 'OVSPort') set_key('OVS_BRIDGE', bridge) set_key('ONBOOT', 'yes') set_key('BOOTPROTO', 'none') end |