Skip to content

Commit f12036c

Browse files
committed
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
1 parent 520e266 commit f12036c

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

diagnostic/consts.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,6 @@ const (
3131
networkBaseName = "network.json"
3232
rawNetworkBaseName = "raw-network.txt"
3333
tunnelStateBaseName = "tunnelstate.json"
34+
cliConfigurationBaseName = "cli-configuration.json"
35+
configurationBaseName = "configuration.json"
3436
)

diagnostic/diagnostic.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,16 @@ func createJobs(
376376
fn: jsonNetworkCollectorFunc,
377377
bypass: noDiagNetwork,
378378
},
379+
{
380+
jobName: "cli configuration",
381+
fn: collectFromEndpointAdapter(client.GetCliConfiguration, cliConfigurationBaseName),
382+
bypass: false,
383+
},
384+
{
385+
jobName: "configuration",
386+
fn: collectFromEndpointAdapter(client.GetTunnelConfiguration, configurationBaseName),
387+
bypass: false,
388+
},
379389
}
380390

381391
return jobs

0 commit comments

Comments
 (0)