Class: IFCFG::Port

Inherits:
OVS
  • Object
show all
Defined in:
lib/puppetx/redhat/ifcfg.rb

Instance Attribute Summary

Attributes inherited from OVS

#ifcfg

Instance Method Summary collapse

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