networkapi.api_network.facade package¶
Subpackages¶
Submodules¶
networkapi.api_network.facade.v1 module¶
- networkapi.api_network.facade.v1.create_dhcprelayIPv4_object(user, ipv4_id, networkipv4_id)[source]¶
- networkapi.api_network.facade.v1.create_dhcprelayIPv6_object(user, ipv6_id, networkipv6_id)[source]¶
- networkapi.api_network.facade.v1.deploy_networkIPv4_configuration(user, networkipv4, equipment_list)[source]¶
Loads template for creating Network IPv4 equipment configuration, creates file and apply config.
Args: equipment_list: NetworkIPv4 object equipment_list: Equipamento objects list
Returns: List with status of equipments output
- networkapi.api_network.facade.v1.deploy_networkIPv6_configuration(user, networkipv6, equipment_list)[source]¶
Loads template for creating Network IPv6 equipment configuration, creates file and apply config.
Args: NetworkIPv6 object Equipamento objects list
Returns: List with status of equipments output
- networkapi.api_network.facade.v1.get_dict_v4_to_use_in_configuration_deploy(user, networkipv4, equipment_list)[source]¶
Generate dictionary with vlan an IP information to be used to generate template dict for equipment configuration
Args: networkipv4 NetworkIPv4 object equipment_list: Equipamento objects list
Returns: 2-dimension dictionary with equipments information for template rendering
- networkapi.api_network.facade.v1.get_dict_v6_to_use_in_configuration_deploy(user, networkipv6, equipment_list)[source]¶
Generate dictionary with vlan an IP information to be used to generate template dict for equipment configuration
Args: networkipv4 NetworkIPv4 object equipment_list: Equipamento objects list
Returns: 2-dimension dictionary with equipments information for template rendering
- networkapi.api_network.facade.v1.remove_deploy_networkIPv4_configuration(user, networkipv4, equipment_list)[source]¶
Loads template for removing Network IPv4 equipment configuration, creates file and apply config.
Args: NetworkIPv4 object Equipamento objects list
Returns: List with status of equipments output
- networkapi.api_network.facade.v1.remove_deploy_networkIPv6_configuration(user, networkipv6, equipment_list)[source]¶
Loads template for removing Network IPv6 equipment configuration, creates file and apply config.
Args: NetworkIPv6 object Equipamento objects list
Returns: List with status of equipments output