(vm_name, zone)
return (address_resource, '$(ref.%s.address)' % address_name)
Creates a static IP address resource; returns it and the natIP.
Creates a static IP address resource; returns it and the natIP.
Creates a static IP address resource ; returns it and the natIP .
def MakeStaticAddress(vm_name, zone):
  """Creates a static IP address resource; returns it and the natIP."""
  address_name = vm_name + '-address'
  address_resource = {
      'name': address_name,
      'type': default.ADDRESS,
      'properties': {
          'name': address_name,
          'region': common.ZoneToRegion(zone),
      },
  }
  return (address_resource, '$(ref.%s.address)' % address_name)
def MakeStaticAddress ( vm_name , zone ) : address_name = vm_name + '-address' address_resource = { 'name' : address_name , 'type' : default . ADDRESS , 'properties' : { 'name' : address_name , 'region' : common . ZoneToRegion ( zone ) , } , } return ( address_resource , '$(ref.%s.address)' % address_name )