From f12036c2da135fd22caa2ae71c92243c34141eaa Mon Sep 17 00:00:00 2001 From: Luis Neto Date: Wed, 4 Dec 2024 05:26:51 -0800 Subject: [PATCH] TUN-8770: add cli configuration and tunnel configuration to diagnostic zipfile ## Summary Adds two new jobs which will export the cli configuration and tunnel configuration in separate files. These files will also be added to the zipfile's root. Closes TUN-8770 --- diagnostic/consts.go | 2 ++ diagnostic/diagnostic.go | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/diagnostic/consts.go b/diagnostic/consts.go index b2da5304..7b48b3d6 100644 --- a/diagnostic/consts.go +++ b/diagnostic/consts.go @@ -31,4 +31,6 @@ const ( networkBaseName = "network.json" rawNetworkBaseName = "raw-network.txt" tunnelStateBaseName = "tunnelstate.json" + cliConfigurationBaseName = "cli-configuration.json" + configurationBaseName = "configuration.json" ) diff --git a/diagnostic/diagnostic.go b/diagnostic/diagnostic.go index a4c182b5..876a964e 100644 --- a/diagnostic/diagnostic.go +++ b/diagnostic/diagnostic.go @@ -376,6 +376,16 @@ func createJobs( fn: jsonNetworkCollectorFunc, bypass: noDiagNetwork, }, + { + jobName: "cli configuration", + fn: collectFromEndpointAdapter(client.GetCliConfiguration, cliConfigurationBaseName), + bypass: false, + }, + { + jobName: "configuration", + fn: collectFromEndpointAdapter(client.GetTunnelConfiguration, configurationBaseName), + bypass: false, + }, } return jobs