Skip to content

Commit 80b5119

Browse files
Add IPV6 feature
Signed-off-by: Madhuri Upadhye <[email protected]>
1 parent ae7bc47 commit 80b5119

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

sssd_test_framework/hosts/client.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,13 @@ def features(self) -> dict[str, bool]:
5757
# enumerate (bool) Feature is only supported for domains with id_provider = ldap or id_provider = proxy.
5858
MANWIDTH=10000 man sssd.conf | grep -q "id_provider = ldap or id_provider = proxy" && \
5959
echo "limited_enumeration" || :
60+
# ip -6 addr show scope global | grep -q "inet6 " and [ -f "/usr/lib64/sssd/libsss_files.so" ] && echo "ipv6" || :
61+
# Check if BEAKER_RECIPE_ID environment variable is set
62+
if [ -n "${BEAKER_RECIPE_ID}" ]; then
63+
if ip -6 addr show scope global | grep -q "inet6 "; then
64+
echo "ipv6"
65+
fi
66+
fi
6067
""",
6168
log_level=ProcessLogLevel.Error,
6269
)
@@ -69,6 +76,7 @@ def features(self) -> dict[str, bool]:
6976
"ldap_use_ppolicy": False,
7077
"knownhosts": False,
7178
"limited_enumeration": False,
79+
"ipv6": False,
7280
}
7381

7482
self._features.update({k: True for k in result.stdout_lines})

0 commit comments

Comments
 (0)