Class: Iface::PrimaryInterface
- 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
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_nm ⇒ Object
52 53 54 |
# File 'lib/iface/value_set.rb', line 52 def disable_nm self['NM_CONTROLLED'] = 'no' end |
#make_static ⇒ Object
48 49 50 |
# File 'lib/iface/value_set.rb', line 48 def make_static self['BOOTPROTO'] = 'none' end |
#use_ipv6 ⇒ Object
56 57 58 |
# File 'lib/iface/value_set.rb', line 56 def use_ipv6 self['IPV6INIT'] = 'yes' end |