daemon: fixed error in requirements check and sorted executable definitions
This commit is contained in:
parent
9fa3e77d12
commit
e5d6299f0a
1 changed files with 12 additions and 13 deletions
|
@ -1,30 +1,31 @@
|
||||||
from typing import List
|
from typing import List
|
||||||
|
|
||||||
BASH: str = "bash"
|
BASH: str = "bash"
|
||||||
VNODED: str = "vnoded"
|
|
||||||
VCMD: str = "vcmd"
|
|
||||||
SYSCTL: str = "sysctl"
|
|
||||||
IP: str = "ip"
|
|
||||||
ETHTOOL: str = "ethtool"
|
ETHTOOL: str = "ethtool"
|
||||||
TC: str = "tc"
|
IP: str = "ip"
|
||||||
MOUNT: str = "mount"
|
MOUNT: str = "mount"
|
||||||
UMOUNT: str = "umount"
|
|
||||||
OVS_VSCTL: str = "ovs-vsctl"
|
|
||||||
TEST: str = "test"
|
|
||||||
NFTABLES: str = "nft"
|
NFTABLES: str = "nft"
|
||||||
|
OVS_VSCTL: str = "ovs-vsctl"
|
||||||
|
SYSCTL: str = "sysctl"
|
||||||
|
TC: str = "tc"
|
||||||
|
TEST: str = "test"
|
||||||
|
UMOUNT: str = "umount"
|
||||||
|
VCMD: str = "vcmd"
|
||||||
|
VNODED: str = "vnoded"
|
||||||
|
|
||||||
COMMON_REQUIREMENTS: List[str] = [
|
COMMON_REQUIREMENTS: List[str] = [
|
||||||
BASH,
|
BASH,
|
||||||
NFTABLES,
|
|
||||||
ETHTOOL,
|
ETHTOOL,
|
||||||
IP,
|
IP,
|
||||||
MOUNT,
|
MOUNT,
|
||||||
|
NFTABLES,
|
||||||
SYSCTL,
|
SYSCTL,
|
||||||
TC,
|
TC,
|
||||||
UMOUNT,
|
|
||||||
TEST,
|
TEST,
|
||||||
|
UMOUNT,
|
||||||
|
VCMD,
|
||||||
|
VNODED,
|
||||||
]
|
]
|
||||||
VCMD_REQUIREMENTS: List[str] = [VNODED, VCMD]
|
|
||||||
OVS_REQUIREMENTS: List[str] = [OVS_VSCTL]
|
OVS_REQUIREMENTS: List[str] = [OVS_VSCTL]
|
||||||
|
|
||||||
|
|
||||||
|
@ -38,6 +39,4 @@ def get_requirements(use_ovs: bool) -> List[str]:
|
||||||
requirements = COMMON_REQUIREMENTS
|
requirements = COMMON_REQUIREMENTS
|
||||||
if use_ovs:
|
if use_ovs:
|
||||||
requirements += OVS_REQUIREMENTS
|
requirements += OVS_REQUIREMENTS
|
||||||
else:
|
|
||||||
requirements += VCMD_REQUIREMENTS
|
|
||||||
return requirements
|
return requirements
|
||||||
|
|
Loading…
Reference in a new issue