Revision 47c66641
b/snf-cyclades-app/synnefo/api/servers.py | ||
---|---|---|
115 | 115 |
'mac_address': nic.mac, |
116 | 116 |
'ipv4': nic.ipv4 if nic.ipv4 else None, |
117 | 117 |
'ipv6': nic.ipv6 if nic.ipv6 else None} |
118 |
|
|
118 | 119 |
if nic.firewall_profile: |
119 | 120 |
d['firewallProfile'] = nic.firewall_profile |
120 | 121 |
return d |
b/snf-cyclades-app/synnefo/ui/static/snf/js/models.js | ||
---|---|---|
490 | 490 |
}, |
491 | 491 |
|
492 | 492 |
is_public: function() { |
493 |
return this.id === "public";
|
|
493 |
return this.get("public");
|
|
494 | 494 |
}, |
495 | 495 |
|
496 | 496 |
decrease_connecting: function() { |
... | ... | |
1094 | 1094 |
}, |
1095 | 1095 |
|
1096 | 1096 |
get_public_nic: function() { |
1097 |
return this.get_nics(function(n){ return n.get('network_id') == 'public'})[0];
|
|
1097 |
return this.get_nics(function(n){ return n.get_network().is_public() === true })[0];
|
|
1098 | 1098 |
}, |
1099 | 1099 |
|
1100 | 1100 |
get_nic: function(net_id) { |
Also available in: Unified diff