Class: Iface::PrimaryInterface

Inherits:
ValueSet
  • Object
show all
Defined in:
lib/iface/value_set.rb

Overview

Represents a set of NAME=value pairs that would appear in a primary interface file, e.g. one named “ifcfg-eth0”

Constant Summary

Constants inherited from ValueSet

ValueSet::VAR_HANDLERS

Instance Method Summary collapse

Methods inherited from ValueSet

#[], #[]=, #fetch_raw, #initialize, #key?, #to_s

Constructor Details

This class inherits a constructor from Iface::ValueSet

Instance Method Details

#disable_nmObject



52
53
54
# File 'lib/iface/value_set.rb', line 52

def disable_nm
  self['NM_CONTROLLED'] = 'no'
end

#make_staticObject



48
49
50
# File 'lib/iface/value_set.rb', line 48

def make_static
  self['BOOTPROTO'] = 'none'
end

#use_ipv6Object



56
57
58
# File 'lib/iface/value_set.rb', line 56

def use_ipv6
  self['IPV6INIT'] = 'yes'
end