Create switch management
A creation workflow for adding a new Switch Management to the subscription database.
create_subscription(product, partner_id)
Create a new subscription object.
Source code in gso/workflows/switch_management/create_switch_management.py
initialize_subscription(subscription, edge_port, dcn_vlan_id, mgmt_vlan_id)
Initialize the subscription with user input.
This includes calculating the IP spaces that the dependant Layer 3 interfaces will sit in.
Source code in gso/workflows/switch_management/create_switch_management.py
register_dns_records_v4_network(subscription, ipam_registrations)
Register an IPv4 network for Switch and Optical Management in IPAM.
Source code in gso/workflows/switch_management/create_switch_management.py
register_dns_records_v6_network(subscription, ipam_registrations)
Register an IPv6 network for Switch and Optical Management in IPAM.
Source code in gso/workflows/switch_management/create_switch_management.py
register_dns_records_devices(subscription)
Register DNS records for both switch and optical management interfaces in IPAM.
Source code in gso/workflows/switch_management/create_switch_management.py
create_switch_management()
Create a new Switch Management.