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
This commit is contained in:
Luis Neto 2024-12-04 05:26:51 -08:00
parent 520e266411
commit f12036c2da
2 changed files with 12 additions and 0 deletions

View File

@ -31,4 +31,6 @@ const (
networkBaseName = "network.json" networkBaseName = "network.json"
rawNetworkBaseName = "raw-network.txt" rawNetworkBaseName = "raw-network.txt"
tunnelStateBaseName = "tunnelstate.json" tunnelStateBaseName = "tunnelstate.json"
cliConfigurationBaseName = "cli-configuration.json"
configurationBaseName = "configuration.json"
) )

View File

@ -376,6 +376,16 @@ func createJobs(
fn: jsonNetworkCollectorFunc, fn: jsonNetworkCollectorFunc,
bypass: noDiagNetwork, bypass: noDiagNetwork,
}, },
{
jobName: "cli configuration",
fn: collectFromEndpointAdapter(client.GetCliConfiguration, cliConfigurationBaseName),
bypass: false,
},
{
jobName: "configuration",
fn: collectFromEndpointAdapter(client.GetTunnelConfiguration, configurationBaseName),
bypass: false,
},
} }
return jobs return jobs