Class: Dcmgr::Cli::Network::DhcpOps

Inherits:
Base
  • Object
show all
Defined in:
lib/dcmgr/cli/network.rb

Constant Summary collapse

M =
Dcmgr::Models

Instance Method Summary collapse

Instance Method Details

#addrange(uuid, range_begin, range_end) ⇒ Object



287
288
289
290
# File 'lib/dcmgr/cli/network.rb', line 287

def addrange(uuid, range_begin, range_end)
  nw = M::Network[uuid] || UnknownUUIDEntry.raise
  nw.add_ipv4_dynamic_range(range_begin, range_end)
end

#delrange(uuid, range_begin, range_end) ⇒ Object



293
294
295
296
# File 'lib/dcmgr/cli/network.rb', line 293

def delrange(uuid, range_begin, range_end)
  nw = M::Network[uuid] || UnknownUUIDEntry.raise
  nw.del_ipv4_dynamic_range(range_begin, range_end)
end