class Bandshell::DHCPAddressing

Dynamic IPv4 addressing via DHCP

Public Class Methods

description() click to toggle source
# File lib/bandshell/netconfig.rb, line 436
def self.description
  "Dynamic Addressing - DHCP"
end
new(args={}) click to toggle source
# File lib/bandshell/netconfig.rb, line 405
def initialize(args={})
  # we accept no args
end

Public Instance Methods

addressing_type() click to toggle source
# File lib/bandshell/netconfig.rb, line 409
def addressing_type
  'dhcp'
end
args() click to toggle source
# File lib/bandshell/netconfig.rb, line 427
def args
  { }
end
interfaces_lines() click to toggle source
# File lib/bandshell/netconfig.rb, line 413
def interfaces_lines
  # DHCP needs no additional interfaces args
  # from the addressing side
  []
end
safe_assign() click to toggle source
# File lib/bandshell/netconfig.rb, line 423
def safe_assign
  [] # no args
end
validate() click to toggle source
# File lib/bandshell/netconfig.rb, line 419
def validate
  # nothing to validate
end
write_configs() click to toggle source
# File lib/bandshell/netconfig.rb, line 431
def write_configs
  # dhclient will write our resolv.conf so we do not need
  # to do anything
end