Hi All,

I have a scenario to retrieve list of VM's assigned ip addresses through
heat template.
My template has following snippet:

 service-0-instance:

    type: OS::Contrail::ServiceInstance

    depends_on: [ left-subnet, service-0-template ]

    properties:

      name: {"Fn::Join" : ["-", [get_param: nsid, "service-0-template"]]}

      service_template: {get_attr: [service-0-template  fq_name]}

      scale_out:

          max_instances: 1

      interface_list: [

          {              virtual_network: {get_param: mgmt-net-id}
  },

          {              virtual_network: {get_resource: left-net}
    },

          {              virtual_network: {get_param: right-net-id}
 },

      ]


service_instance.py
<https://github.com/Juniper/contrail-heat/blob/master/contrail_heat/resources/service_instance.py>
in
contrail heat resources only gives "virtual_machines" which has vm_id ,name
and status.

I can get ip addresses, if I add svm['ip_interface_list'] = vm.networks
in service_instance.py
<https://github.com/Juniper/contrail-heat/blob/master/contrail_heat/resources/service_instance.py>
.

Is there any way to retrieve ip_interface_list from service instance
without modifying service_instance.py
<https://github.com/Juniper/contrail-heat/blob/master/contrail_heat/resources/service_instance.py>
 ???


Thanks

Eswar Rao
_______________________________________________
Dev mailing list
[email protected]
http://lists.opencontrail.org/mailman/listinfo/dev_lists.opencontrail.org

Reply via email to