Imports
CLI commands for importing data to coreDB.
CreatePartner
SiteImportModel
Bases: BaseSiteValidatorModel
The required input for importing an existing gso.products.product_types.site
.
Source code in gso/cli/imports.py
RouterImportModel
Bases: BaseModel
Required fields for importing an existing gso.product.product_types.router
.
Source code in gso/cli/imports.py
SwitchImportModel
Bases: BaseModel
Required fields for importing an existing gso.product.product_types.switch
.
Source code in gso/cli/imports.py
SuperPopSwitchImportModel
Bases: BaseModel
Required fields for importing an existing gso.product.product_types.super_pop_switch
.
Source code in gso/cli/imports.py
OfficeRouterImportModel
Bases: BaseModel
Required fields for importing an existing gso.product.product_types.office_router
.
Source code in gso/cli/imports.py
IptrunkImportModel
Bases: BaseModel
Required fields for importing an existing gso.products.product_types.iptrunk
.
Source code in gso/cli/imports.py
check_if_partner_exists(value)
Validate that the partner exists.
Source code in gso/cli/imports.py
check_if_router_side_is_available(value)
Both sides of the trunk must exist in GSO.
Source code in gso/cli/imports.py
check_members()
Amount of LAG members has to match on side A and B, and meet the minimum requirement.
Source code in gso/cli/imports.py
OpenGearImportModel
Bases: BaseModel
Required fields for importing an existing gso.products.product_types.opengear
.
Source code in gso/cli/imports.py
EdgePortImportModel
Bases: BaseModel
Required fields for importing an existing gso.products.product_types.edge_port
.
Source code in gso/cli/imports.py
check_if_partner_exists(value)
Validate that the partner exists.
Source code in gso/cli/imports.py
validate_node(value)
Check if the node is an active PE router in GSO.
Source code in gso/cli/imports.py
check_members()
Amount of LAG members has to match and meet the minimum requirement.
Source code in gso/cli/imports.py
L3CoreServiceImportModel
Bases: BaseModel
Import L3 Core Service model.
Source code in gso/cli/imports.py
BaseBGPPeer
Bases: BaseModel
Base BGP Peer model.
Source code in gso/cli/imports.py
BFDSettingsModel
ServiceBindingPort
Bases: BaseModel
Service Binding model.
Source code in gso/cli/imports.py
check_if_partner_exists(value)
Validate that the partner exists.
Source code in gso/cli/imports.py
validate_node(value)
Check if the Service Binding Ports are valid.
Source code in gso/cli/imports.py
LanSwitchInterconnectRouterSideImportModel
Bases: BaseModel
Import LAN Switch Interconnect Router side model.
Source code in gso/cli/imports.py
LanSwitchInterconnectSwitchSideImportModel
Bases: BaseModel
Import LAN Switch Interconnect Switch side model.
Source code in gso/cli/imports.py
LanSwitchInterconnectImportModel
Bases: BaseModel
Import LAN Switch Interconnect model.
Source code in gso/cli/imports.py
Layer2CircuitServiceImportModel
Bases: BaseModel
Import Layer 2 Circuit Service model.
Source code in gso/cli/imports.py
ServiceBindingPortInput
check_if_partner_exists(value)
Validate that the partner exists.
Source code in gso/cli/imports.py
check_if_edge_ports_exist()
Check if the edge ports exist.
Source code in gso/cli/imports.py
_read_data(file_path)
Read data from a JSON or YAML file.
Source code in gso/cli/imports.py
_get_router_subscription_id(node_name)
Get the subscription id for a router by its node name.
Source code in gso/cli/imports.py
_import_partners_from_csv(file_path)
Read partners from a CSV file.
_generic_import_product(file_path, imported_product_type, workflow_suffix, name_key, import_model)
Import subscriptions from a JSON or YAML file.
Source code in gso/cli/imports.py
import_sites(filepath=common_filepath_option)
import_routers(filepath=common_filepath_option)
import_switches(filepath=common_filepath_option)
import_super_pop_switches(filepath=common_filepath_option)
Import Super PoP Switches into GSO.
Source code in gso/cli/imports.py
import_office_routers(filepath=common_filepath_option)
Import office routers into GSO.
Source code in gso/cli/imports.py
import_opengear(filepath=common_filepath_option)
Import Opengear into GSO.
Source code in gso/cli/imports.py
import_edge_port(filepath=common_filepath_option)
Import Edge Port into GSO.
Source code in gso/cli/imports.py
import_iptrunks(filepath=common_filepath_option)
Import IP trunks into GSO.
Source code in gso/cli/imports.py
import_partners(file_path=typer.Argument(..., help='Path to the CSV file containing partners'))
Import partners from a CSV file into the database.
Source code in gso/cli/imports.py
import_l3_core_service(filepath=common_filepath_option)
Import L3 Core Services into GSO.
Source code in gso/cli/imports.py
import_lan_switch_interconnect(filepath=common_filepath_option)
Import LAN Switch Interconnect services into GSO.
Source code in gso/cli/imports.py
import_layer_2_circuit_service(filepath=common_filepath_option)
Import Layer 2 Circuit services into GSO.