Renamed cc_ip flag to cc_host

This commit is contained in:
Devin Carlen
2010-09-21 00:03:53 -07:00
parent 68633fadeb
commit e74b8070f7
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -184,9 +184,9 @@ DEFINE_string('rabbit_userid', 'guest', 'rabbit userid')
DEFINE_string('rabbit_password', 'guest', 'rabbit password')
DEFINE_string('rabbit_virtual_host', '/', 'rabbit virtual host')
DEFINE_string('control_exchange', 'nova', 'the main exchange to connect to')
DEFINE_string('cc_ip', '127.0.0.1', 'ip of api server')
DEFINE_string('cc_host', '127.0.0.1', 'ip of api server')
DEFINE_integer('cc_port', 8773, 'cloud controller port')
DEFINE_string('ec2_url', 'http://%s:%s/services/Cloud' % (FLAGS.cc_ip, FLAGS.cc_port),
DEFINE_string('ec2_url', 'http://%s:%s/services/Cloud' % (FLAGS.cc_host, FLAGS.cc_port),
'Url to ec2 api server')
DEFINE_string('default_image', 'ami-11111',
+1 -1
View File
@@ -50,7 +50,7 @@ def init_host():
# forwarding entries and a default DNAT entry.
_confirm_rule("-t nat -A nova_prerouting -s 0.0.0.0/0 "
"-d 169.254.169.254/32 -p tcp -m tcp --dport 80 -j DNAT "
"--to-destination %s:%s" % (FLAGS.cc_ip, FLAGS.cc_port))
"--to-destination %s:%s" % (FLAGS.cc_host, FLAGS.cc_port))
# NOTE(devcamcar): Cloud public SNAT entries and the default
# SNAT rule for outbound traffic.