From 620fb907ca9b8370f91e208de0318e241430c8f9 Mon Sep 17 00:00:00 2001
From: Michael Hanselmann <hansmi@google.com>
Date: Wed, 2 Nov 2011 20:17:29 +0100
Subject: [PATCH] QA: Add test for setting node's secondary IP address

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Andrea Spadaccini <spadaccio@google.com>
---
 qa/qa_node.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/qa/qa_node.py b/qa/qa_node.py
index 8b2d406f3..864d681c9 100644
--- a/qa/qa_node.py
+++ b/qa/qa_node.py
@@ -209,6 +209,10 @@ def TestNodeModify(node):
   AssertCommand(["gnt-node", "modify", "--master-candidate=yes",
                  "--auto-promote", node["primary"]])
 
+  # Test setting secondary IP address
+  AssertCommand(["gnt-node", "modify", "--secondary-ip=%s" % node["secondary"],
+                 node["primary"]])
+
 
 def _CreateOobScriptStructure():
   """Create a simple OOB handling script and its structure."""
-- 
GitLab