From 71b1f6eae5ba7bdd7b4e338b7338f24ba74503ab Mon Sep 17 00:00:00 2001 From: Fedor Zhukov Date: Tue, 12 May 2026 10:35:21 +0200 Subject: [PATCH] aruba: add no-encrypt to show running-config By default aruba replaces passwords in show run output with a RANDOM string. * Its not a real hash (ie can not be reused in the configuration). * And its not consistent between show runs (ie every time output changes). Adding "no-encrypt" helps with a major caveat: * Unpriveleged is not permitted to run this command * Instead of meaningful error aruba just returns empty output This means that get_config() will not work for users without admin privs. --- src/gnetcli_adapter/gnetcli_adapter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gnetcli_adapter/gnetcli_adapter.py b/src/gnetcli_adapter/gnetcli_adapter.py index fdc3467..836734a 100644 --- a/src/gnetcli_adapter/gnetcli_adapter.py +++ b/src/gnetcli_adapter/gnetcli_adapter.py @@ -113,7 +113,7 @@ async def get_config(breed: str) -> List[str]: elif breed.startswith(("h3c", "vrp")): return ["display current-configuration"] elif breed.startswith("aruos"): - return ["show ap-env", "show running-config"] + return ["show ap-env", "show running-config no-encrypt"] raise Exception("unknown breed %r" % breed)