From 545129c8a5728aba6b1547e078024be92fdcebc9 Mon Sep 17 00:00:00 2001 From: mischa Date: Tue, 21 Jun 2022 09:19:28 +0200 Subject: [PATCH] added feature flag collection --- config/single.cnf | 2 +- get.py | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/config/single.cnf b/config/single.cnf index 079857e..bcd07b8 100644 --- a/config/single.cnf +++ b/config/single.cnf @@ -1,4 +1,4 @@ -[ipsecconnectors1] +[panfwservices1.txt] cxp = US-EAST-2 segments = Prod group = Development diff --git a/get.py b/get.py index a565a98..e61d5d1 100755 --- a/get.py +++ b/get.py @@ -128,6 +128,13 @@ tenantName = data[0]['name'] logging.info(f'Tenant Name: {tenantName}') logging.info(f'Tenant ID: {tenantNetworkId}') +# Get feature flags +logging.info('=== Collecting Feature Flags') +r = alkira_get(s, f'/tenantenabledfeatures') +data = r.json() +print('# Credentials') +print(json.dumps(data, indent=4)) + # Get credentials logging.info('=== Collecting Credentials') r = alkira_get(s, f'/credentials')