Managing Git Repositories in Junos Space
In Junos Space Network Management Platform, you can manage Git repository connections from the Git Repositories page of the Administration workspace. External Git repositories are added to Junos Space to enable the import of CLI Configlets and scripts from the repositories to the Junos Space database.
You can perform the following tasks from the Administration > Git Repositories page of Junos Space Platform:
Adding Git Repositories to Junos Space
You can add multiple Git repositories for importing CLI Configlets and scripts. While adding a Git repository to Junos Space, you can specify whether the Git repository is a configlets repository or a scripts repository.
To add a Git repository to Junos Space:
Modifying Git Repositories in Junos Space
From the Git Repositories page of the Administration workspace, you can modify the details of the Git repositories that you have added to Junos Space.
To modify the connection details of a Git repository:
You are returned to the Git Repositories page where you can see the updated information.
Deleting Git Repositories from Junos Space
You can delete the Git repositories that are added to Junos Space from the Git Repositories page.
To delete the Git repository:
You are returned to the Git Repositories page. The deleted Git repository is removed from the page.
Setting the Active Git Repository
In Junos Space Platform, you can add multiple Git repositories, but you can designate only one configlets repository and one scripts repository as the active Git repositories for CLI Configlets and scripts respectively. CLI Configlets and scripts are imported from the active Git repository of that particular type. When you designate a Git repository as an active repository, the previously active repository of that type is no longer active.
To set the active Git repository:
The Active column on the Git Repositories page displays Yes for the active Git repositories.
Testing the Connection to the Git Repository
After you add a Git repository to Junos Space, you can test the connection to make sure that the Git repository is accessible and CLI Configlets or scripts can be imported, depending on the type of Git repository that you added.
To test the connection to the Git repository: