~soren/nova/apport-integration

« back to all changes in this revision

Viewing changes to nova/network/linux_net.py

  • Committer: Tarmac
  • Author(s): Soren Hansen
  • Date: 2010-11-29 21:19:16 UTC
  • mfrom: (396.4.5 templated-flags)
  • Revision ID: hudson@openstack.org-20101129211916-4i34e5jngbague25
Add a templating mechanism in the flag parsing.

Add a state_path flag that will be used as the top-level dir for all other state (such as images, instances, buckets, networks, etc).
This way you only need to change one flag to put all your state in e.g. /var/lib/nova. This simplifies packaging quite a bit.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
                    '/etc/nova/nova-dhcpbridge.conf',
39
39
                    'location of flagfile for dhcpbridge')
40
40
 
41
 
flags.DEFINE_string('networks_path', utils.abspath('../networks'),
 
41
flags.DEFINE_string('networks_path', '$state_path/networks',
42
42
                    'Location to keep network config files')
43
43
flags.DEFINE_string('public_interface', 'vlan1',
44
44
                    'Interface for public IP addresses')