Revision 47334810 lib/constants.py
b/lib/constants.py | ||
---|---|---|
22 | 22 |
"""Module holding different constants.""" |
23 | 23 |
|
24 | 24 |
import re |
25 |
import socket |
|
25 | 26 |
|
26 | 27 |
from ganeti import _autoconf |
27 | 28 |
from ganeti import _vcsversion |
... | ... | |
636 | 637 |
IP4_VERSION = 4 |
637 | 638 |
IP6_VERSION = 6 |
638 | 639 |
VALID_IP_VERSIONS = frozenset([IP4_VERSION, IP6_VERSION]) |
640 |
# for export to htools |
|
641 |
IP4_FAMILY = socket.AF_INET |
|
642 |
IP6_FAMILY = socket.AF_INET6 |
|
643 |
|
|
639 | 644 |
TCP_PING_TIMEOUT = 10 |
640 | 645 |
GANETI_RUNAS = "root" |
641 | 646 |
DEFAULT_VG = "xenvg" |
Also available in: Unified diff