def enable_static(ip, netmask=nil)
      netmask ||= network_mask

      interface.enable_static_ip_config(ip, netmask)
      reload
    end
def enable_static(ip, netmask=nil)
      netmask ||= network_mask

      interface.enable_static_ip_config(ip, netmask)
      reload
    end
Sets up the static IPV4 configuration for the host only network
 interface. This allows the caller to set the IPV4 address of the
 interface as well as the netmask.