From 601eb876fedb449a629c272fba66c2c31ead0d8d Mon Sep 17 00:00:00 2001 From: Ariel Otilibili Date: Sun, 21 Sep 2025 12:28:14 +0200 Subject: [PATCH] http_discovery: document targets file format The documentation does not give the file format expected for targets. Use the template from File discovery. Link: https://gnmic.openconfig.net/user_guide/targets/target_discovery/file_discovery/ Signed-off-by: Ariel Otilibili --- .../target_discovery/http_discovery.md | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/docs/user_guide/targets/target_discovery/http_discovery.md b/docs/user_guide/targets/target_discovery/http_discovery.md index 2ad8deb8..5f9e3739 100644 --- a/docs/user_guide/targets/target_discovery/http_discovery.md +++ b/docs/user_guide/targets/target_discovery/http_discovery.md @@ -60,3 +60,24 @@ loader: # values in this file will be overwritten by the ones defined in `vars` vars-file: ``` + +#### Targets file format + +=== "JSON" + ```json + { + "10.10.10.10": { + "username": "admin", + "insecure": true + }, + "10.10.10.11": { + "username": "admin", + }, + "10.10.10.12": {}, + "10.10.10.13": {}, + "10.10.10.14": {} + } + ``` + +Just like the targets in the main configuration file, the missing configuration fields get filled with the global flags, +the ENV variables first, the config file main section next and then the default values.