Revision 78411c60 lib/hypervisor/hv_base.py

b/lib/hypervisor/hv_base.py
62 62
OPT_FILE_CHECK = (False, ) + _FILE_CHECK
63 63
REQ_DIR_CHECK = (True, ) + _DIR_CHECK
64 64
OPT_DIR_CHECK = (False, ) + _DIR_CHECK
65
NET_PORT_CHECK = (True, lambda x: x > 0 and x < 65535, "invalid port number",
66
                  None, None)
65 67

  
66 68
# no checks at all
67 69
NO_CHECK = (False, None, None, None, None)

Also available in: Unified diff