Fixed misspelled variable

This commit is contained in:
Nachi Ueno 2011-01-05 10:35:15 -05:00
parent 28bf4e2df3
commit b47f37d0f9
2 changed files with 9 additions and 4 deletions

View File

@ -912,7 +912,7 @@ class NWFilterFirewall(object):
if(FLAGS.use_ipv6 and version == 6):
net, prefixlen = _get_net_and_prefixlen(rule.cidr)
rule_xml += "<%s srcipaddr='%s' srcipmask='%s' " % \
(v6protocol[rrule.protocol], net, prefixlen)
(v6protocol[rule.protocol], net, prefixlen)
else:
net, mask = _get_net_and_mask(rule.cidr)
rule_xml += "<%s srcipaddr='%s' srcipmask='%s' " % \

View File

@ -162,13 +162,18 @@ class InstanceTests(UserSmokeTestCase):
'ping -c1 %s' % self.data['private_ip'])
if status == 0:
break
if FLAGS.use_ipv6:
else:
self.fail('could not ping instance')
if FLAGS.use_ipv6:
for x in xrange(120):
# ping waits for 1 second
status, output = commands.getstatusoutput(
'ping6 -c1 %s' % self.data['ip_v6'])
if status == 0:
break
else:
self.fail('could not ping instance')
else:
self.fail('could not ping instance')
def test_005_can_ssh_to_private_ip(self):
for x in xrange(30):