From e86872c959f8f4da6c59c0f8336ed778c62f414f Mon Sep 17 00:00:00 2001 From: Umesh Sirsiwal Date: Thu, 28 Apr 2011 16:07:15 -0400 Subject: [PATCH] VCDN-333: Node Statistics selected incorrect interface and accordingly COMON gets no stats from node. : Now node name can only be used for primary interface --- dns-config | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dns-config b/dns-config index aaaa3f2..b2fa1e7 100755 --- a/dns-config +++ b/dns-config @@ -66,7 +66,9 @@ def main(): if interface['hostname']: hostname = interface['hostname'] - else: + else: + if not interface['is_primary']: + continue hostname = nodes[interface['node_id']]['hostname'] if hosts.has_key(interface['ip']): -- 2.43.0