Skip to content

Commit

Permalink
Merge pull request #14 from menckend/menckend-patch-6
Browse files Browse the repository at this point in the history
Add logic to close GNS3 project when work is done
  • Loading branch information
menckend authored Oct 23, 2024
2 parents 021ff0b + 9f061e0 commit 2088fd2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dcnodatg/dcnodatg.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,13 @@ def p_to_v(**kwargs):
gns3_worker.invoker(servername, gns3_url, switch_vals,
allconfigs, gnsprj_id, connections_to_make)
# Done!

# Close the GNS3 project
gnsprj_close = requests.post(gns3_url + 'projects' + 'project_id' + 'close'

return gns3_url_noapi + gnsprj_id


if __name__ == '__main__':
kwdict = {}
for arg in sys.argv[1:]:
Expand Down

0 comments on commit 2088fd2

Please sign in to comment.