backend/server/config_common/templated_document.py | 4 ++++ 1 file changed, 4 insertions(+)
New commits: commit 43b1f78f700842fecb4eb36eaa6b5313faf70032 Author: Miroslav Suchý msuchy@redhat.com Date: Fri Dec 2 14:42:10 2011 +0100
IPv6: add new macro rhn.system.ip6_address for templates of configuration files
diff --git a/backend/server/config_common/templated_document.py b/backend/server/config_common/templated_document.py index 2e413ee..4f96a93 100644 --- a/backend/server/config_common/templated_document.py +++ b/backend/server/config_common/templated_document.py @@ -51,6 +51,7 @@ class ServerTemplatedDocument(TemplatedDocument): RHN_PREFIX + 'description' : self.description, RHN_PREFIX + 'hostname' : self.hostname, RHN_PREFIX + 'ip_address' : self.ipaddr, + RHN_PREFIX + 'ip6_address' : self.ip6addr, RHN_PREFIX + 'custom_info' : self.custom_info, RHN_PREFIX + 'net_interface.ip_address' : self.net_intf_ipaddr, RHN_PREFIX + 'net_interface.netmask' : self.net_intf_netmask, @@ -80,6 +81,9 @@ class ServerTemplatedDocument(TemplatedDocument): def ipaddr(self): return self._get_network_info_attr('ipaddr')
+ def ip6addr(self): + return self._get_network_info_attr('ip6addr') + def _get_network_info_attr(self, attr): network_infos = self.server.hardware_by_class(NetworkInformation)
spacewalk-commits@lists.fedorahosted.org