New Client Network Site
Description
Creates a new client network site. A client network site is defined by having its own local area network (layer 2 domain consisting of at least one switch or one router/firewall).
The script will create a new site and it will also calculate the new client network site reference following the rules described in Client network sites README. Because the reference is calculated from the street address, you should check official sources for the correct main address of the site.
If there is an existing client network site for a given Street/Housenumber/Postal Code/City, but you want to create a new site because it has a separate network, force_new should be set to true.
If a site has multiple addresses, fill in name and address data and the site_reference for an existing site and the name and address will be added tot that existing site. This way you can even add identical addresses with different names to the same site.
If there is an existing client network site for a given Street/Housenumber/Postal Code/City, you have not set force_new to true and you have not given the site_reference for an existing site, the script wil fail and not create a new site or add a new address.
Because the client_network_sites.yml file is stored in a GitLab repo, this script will first clone the repo and then push a commit when there are any changes.
Credentials
- GitLab deploy token for network configuration
Input
- site_name: official name as referenced on the official website.
- street: full official street name. Do not abbreviate like St-Pietersplein.
- house_number
- postal_code
- city
- force_new: should be "false" by default
- state: reserved, planned, active, inactive
- documentation_location (if left empty, this script could create the document location)
- site_reference: reference of an existing site to add a additional name+address to
Output
The Client Network Sites list is stored on GitLab: https://gitlab.gentgrp.gent.be/systeembeheer/configuration/network/client-network-sites/-/blob/main/client_network_sites.yml