def set_ip_range(starting_address: nil, ending_address: nil, mask: nil, cidr: nil)
      range = self.class.ip_range(
        starting_address: starting_address,
        ending_address: ending_address,
        mask: mask,
        cidr: cidr
      )
      @starting_address = range.first
      @ending_address = range.last
      @need_to_update = true
    end
def set_ip_range(starting_address: nil, ending_address: nil, mask: nil, cidr: nil)
      range = self.class.ip_range(
        starting_address: starting_address,
        ending_address: ending_address,
        mask: mask,
        cidr: cidr
      )
      @starting_address = range.first
      @ending_address = range.last
      @need_to_update = true
    end
set a new starting and ending addr at the same time.

 @see_also NetworkSegment.ip_range for how to specify the starting
 and ending addresses.

 @param starting_address[String] The starting address, possibly masked

 @param ending_address[String] The ending address

 @param mask[String] The subnet mask to apply to the starting address to get
   the ending address

 @param cidr[String, Integer] he cidr value to apply to the starting address to get
   the ending address

 @return [void]