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
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_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
BaseBGPPeerImportModel
Bases: BaseModel
Base BGP Peer import model.
Source code in gso/cli/imports.py
L3CoreServiceImportModel
Bases: BaseModel
Import L3 Core Service model.
Source code in gso/cli/imports.py
BFDSettingsModel
ServiceBindingPort
Bases: BaseModel
Service Binding model.
Source code in gso/cli/imports.py
validate_ip_addresses()
Validate IP address/mask combinations for the Service Binding Port.
Source code in gso/cli/imports.py
IASImportModel
RAndEImportModel
Bases: L3CoreServiceImportModel
Import R&E Peer and R&E LHCONE 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_edge_ports_exist()
Check if the edge ports exist.
Source code in gso/cli/imports.py
PlacementPortImportModel
Bases: BaseModel
Import Placement Port model.
Source code in gso/cli/imports.py
L3InterfacePort
Bases: BaseModel
L3 Interface Port model for Placement Port Import.
Source code in gso/cli/imports.py
PeeringConnectionImportModel
Bases: BaseModel
Peering connection import model.
Source code in gso/cli/imports.py
validate_placement_port_exists()
Validate that the placement port exists.
Source code in gso/cli/imports.py
validate_bgp_sessions()
Validate that at least one BGP session is provided.
Source code in gso/cli/imports.py
CommercialPeerImportModel
Bases: BaseModel
Import Commercial Peer model.
Source code in gso/cli/imports.py
PeeringConnectionListImportModel
Bases: BaseModel
Import model for adding peering connections to an existing Commercial Peer subscription.
Source code in gso/cli/imports.py
PrefixListImportModel
Bases: BaseModel
Import model for adding existing Prefix Lists to the subscription database.
Source code in gso/cli/imports.py
partners_can_only_have_one_subscription(partner_names)
Ensure that one partner does not have multiple Prefix List subscriptions before importing more.
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
_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_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
603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 | |
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
724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 | |
import_layer_2_circuit_service(filepath=common_filepath_option)
Import Layer 2 Circuit services into GSO.
Source code in gso/cli/imports.py
import_placement_port(filepath=common_filepath_option)
Import Placement Port(IX Port, Private Peer Port, and Transit Provider Port) into GSO.
Source code in gso/cli/imports.py
import_commercial_peer(filepath=common_filepath_option)
Import Commercial Peer into GSO.
Source code in gso/cli/imports.py
import_prefix_list(filepath=common_filepath_option)
Import one or more Prefix Lists into GSO.