root / snf-cyclades-app / synnefo / api / templates / list_ports.xml @ 5db2001a
History | View | Annotate | Download (651 Bytes)
1 |
{% spaceless %} |
---|---|
2 |
<?xml version="1.0" encoding="UTF-8"?>
|
3 |
<ports xmlns="http://docs.openstack.org/compute/api/v1.1" xmlns:atom="http://www.w3.org/2005/Atom"> |
4 |
{% for port in ports %} |
5 |
<port id="{{ port.id }}" name="{{ port.name }}"{% if %} updated="{{ port.updated }}" created="{{ port.created }}" mac_address="{{port.mac_address}}"{% endif %}> |
6 |
|
7 |
{% if port.fixed_ips %} |
8 |
<fixed_ips>
|
9 |
{% for ip in port.fixed_ips.values %} |
10 |
<ip>
|
11 |
<ip_address id="{{ ip.ip_address }}"></ip_address> |
12 |
<subnet id="{{ ip.subnet }}"></subnet> |
13 |
</ip>
|
14 |
{% endfor %} |
15 |
</fixed_ips>
|
16 |
{% endif %} |
17 |
|
18 |
</port>
|
19 |
{% endfor %} |
20 |
</ports>
|
21 |
{% endspaceless %} |