Commit 191e5c19 authored by Jose A. Lopes's avatar Jose A. Lopes
Browse files

Update reference to Python constants



Update reference to 'DAEMONS_PORTS' and related constants that are
used on the Haskell side to construct the 'daemonsPorts' constant.
Signed-off-by: default avatarJose A. Lopes <jabolopes@google.com>
Reviewed-by: default avatarKlaus Aehlig <aehlig@google.com>
parent 6dc0cb59
......@@ -164,19 +164,12 @@ MOND = _constants.MOND
DAEMONS = _constants.DAEMONS
DAEMONS_PORTS = {
# daemon-name: ("proto", "default-port")
NODED: ("tcp", 1811),
CONFD: ("udp", 1814),
MOND: ("tcp", 1815),
RAPI: ("tcp", 5080),
SSH: ("tcp", 22),
}
DAEMONS_PORTS = _constants.DAEMONS_PORTS
DEFAULT_NODED_PORT = DAEMONS_PORTS[NODED][1]
DEFAULT_CONFD_PORT = DAEMONS_PORTS[CONFD][1]
DEFAULT_MOND_PORT = DAEMONS_PORTS[MOND][1]
DEFAULT_RAPI_PORT = DAEMONS_PORTS[RAPI][1]
DEFAULT_NODED_PORT = _constants.DEFAULT_NODED_PORT
DEFAULT_CONFD_PORT = _constants.DEFAULT_CONFD_PORT
DEFAULT_MOND_PORT = _constants.DEFAULT_MOND_PORT
DEFAULT_RAPI_PORT = _constants.DEFAULT_RAPI_PORT
FIRST_DRBD_PORT = 11000
LAST_DRBD_PORT = 14999
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment