From 4bd96e0f93799605785f6042691d046693b4c898 Mon Sep 17 00:00:00 2001 From: Mencken Davidson <76002183+menckend@users.noreply.github.com> Date: Thu, 17 Oct 2024 10:38:51 -0400 Subject: [PATCH] correct the project-URL returned by p_to_v function Was previously pointing to the API URL, not the web-UI URL. --- dcnodatg/dcnodatg.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dcnodatg/dcnodatg.py b/dcnodatg/dcnodatg.py index 75fe57f..acc9880 100644 --- a/dcnodatg/dcnodatg.py +++ b/dcnodatg/dcnodatg.py @@ -367,6 +367,7 @@ def p_to_v(**kwargs): # Set GNS3 URL gns3_url = 'http://'+servername+':3080/v2/' + gns3_url_noapi = 'http://'+servername+':3080/static/web-ui/server/1/projects/' # Get all of the docker image templates from the GNS3 server so we can figure out # which template_id value maps to a specific EOS version when we start building @@ -395,7 +396,7 @@ def p_to_v(**kwargs): gns3_worker.invoker(servername, gns3_url, switch_vals, allconfigs, gnsprj_id, connections_to_make) # Done! - return 'GNS3 project URL is: ' + gns3_url + 'projects/' + gnsprj_id + return 'GNS3 project URL is: ' + gns3_url_noapi + gnsprj_id if __name__ == '__main__':