Add new cluster parameter primary_ip_version
authorManuel Franceschini <livewire@google.com>
Mon, 2 Aug 2010 16:03:21 +0000 (18:03 +0200)
committerManuel Franceschini <livewire@google.com>
Thu, 19 Aug 2010 09:43:40 +0000 (11:43 +0200)
commit2f20d07b577e3598c20385bf553d0b871881b732
tree1ac70d2f607fcbe0d9e314582247b8d12014fa41
parente7b3ad263786d91ae1e5e447bd9af8fdcebb607a
Add new cluster parameter primary_ip_version

We expose the ip_version (4, 6) to the external interface and internally
we convert it to ip_family (AF_INET=2, AF_INET6=10). This makes the code
more concise as all functions deal with family rather than version.

This patch does not yet expose this parameter via gnt-cluster, but only uses
the constant IP4_VERSION. This will be enabled in a future patch.

Signed-off-by: Manuel Franceschini <livewire@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
lib/bootstrap.py
lib/constants.py
lib/objects.py
scripts/gnt-cluster