def network_configuration
      if nova?
        {
          "type"=>"dynamic",
          "vip"=>public_ip
        }
      elsif neutron? && using_external_gateway?
        {
          "type"=>"dynamic",
          "vip"=>public_ip,
          "cloud_properties" => {
            "net_id" => settings.address.subnet_id
          }
        }
      else
        {
          "type"=>"manual",
          "ip"=>public_ip,
          "cloud_properties" => {
            "net_id" => settings.address.subnet_id
          }
        }
      end
    end
def network_configuration
      if nova?
        {
          "type"=>"dynamic",
          "vip"=>public_ip
        }
      elsif neutron? && using_external_gateway?
        {
          "type"=>"dynamic",
          "vip"=>public_ip,
          "cloud_properties" => {
            "net_id" => settings.address.subnet_id
          }
        }
      else
        {
          "type"=>"manual",
          "ip"=>public_ip,
          "cloud_properties" => {
            "net_id" => settings.address.subnet_id
          }
        }
      end
    end
For Nova/Floating IP:
   network:
     type: dynamic
     vip: 1.2.3.4
 For Neutron/Floating IP:
   network:
     type: dynamic
     vip: 1.2.3.4  # public floating IP
     cloud_properties:
       net_id: XXX # internal subnet
 For Neutron/Internal IP:
   network:
     type: manual
     vip: 10.10.10.3 # an IP in subnets range
     cloud_properties:
       net_id: XXX   # internal subnet