319252db74
IPv6 does not support multicast messaging on the loopback interface. Therefore to support patch agent to controller messaging when the management network is associated with the loopback interface it must operate using unicast messaging. This is sufficient since it does not need to communicate with multiple process instances when operating in this local mode. Change-Id: I95efd06be9717a76ccbd543c1fd16408fd89dbeb Closes-Bug: #1830779 Signed-off-by: Matt Peters <matt.peters@windriver.com>
48 lines
1.1 KiB
Python
48 lines
1.1 KiB
Python
"""
|
|
Copyright (c) 2015-2019 Wind River Systems, Inc.
|
|
|
|
SPDX-License-Identifier: Apache-2.0
|
|
|
|
"""
|
|
|
|
import os
|
|
try:
|
|
# The tsconfig module is only available at runtime
|
|
import tsconfig.tsconfig as tsc
|
|
|
|
INITIAL_CONFIG_COMPLETE_FLAG = os.path.join(
|
|
tsc.PLATFORM_CONF_PATH, ".initial_config_complete")
|
|
except Exception:
|
|
pass
|
|
|
|
PATCH_AGENT_STATE_IDLE = "idle"
|
|
PATCH_AGENT_STATE_INSTALLING = "installing"
|
|
PATCH_AGENT_STATE_INSTALL_FAILED = "install-failed"
|
|
PATCH_AGENT_STATE_INSTALL_REJECTED = "install-rejected"
|
|
|
|
PATCH_STORAGE_DIR = "/opt/patching"
|
|
|
|
ADDRESS_VERSION_IPV4 = 4
|
|
ADDRESS_VERSION_IPV6 = 6
|
|
CONTROLLER_FLOATING_HOSTNAME = "controller"
|
|
|
|
AVAILABLE = 'Available'
|
|
APPLIED = 'Applied'
|
|
PARTIAL_APPLY = 'Partial-Apply'
|
|
PARTIAL_REMOVE = 'Partial-Remove'
|
|
COMMITTED = 'Committed'
|
|
UNKNOWN = 'n/a'
|
|
|
|
STATUS_OBSOLETE = 'OBS'
|
|
STATUS_RELEASED = 'REL'
|
|
STATUS_DEVELOPEMENT = 'DEV'
|
|
|
|
CLI_OPT_ALL = '--all'
|
|
CLI_OPT_DRY_RUN = '--dry-run'
|
|
CLI_OPT_RECURSIVE = '--recursive'
|
|
CLI_OPT_RELEASE = '--release'
|
|
|
|
ENABLE_DEV_CERTIFICATE_PATCH_IDENTIFIER = 'ENABLE_DEV_CERTIFICATE'
|
|
|
|
LOOPBACK_INTERFACE_NAME = "lo"
|