Ejemplo n.º 1
0
    def _connect_agents(self, agent1, agent2):
        """Simulate both agents in the same host.

         For packet flow between resources connected to these two agents,
         agent's ovs bridges are connected through patch ports.
        """
        br_int_1 = get_ovs_bridge(agent1.conf.ovs_integration_bridge)
        br_int_2 = get_ovs_bridge(agent2.conf.ovs_integration_bridge)
        net_helpers.create_patch_ports(br_int_1, br_int_2)
Ejemplo n.º 2
0
    def _connect_agents(self, agent1, agent2):
        """Simulate both agents in the same host.

         For packet flow between resources connected to these two agents,
         agent's ovs bridges are connected through patch ports.
        """
        br_int_1 = get_ovs_bridge(agent1.conf.ovs_integration_bridge)
        br_int_2 = get_ovs_bridge(agent2.conf.ovs_integration_bridge)
        net_helpers.create_patch_ports(br_int_1, br_int_2)
Ejemplo n.º 3
0
 def connect_to_external_network(self, host_external_bridge):
     net_helpers.create_patch_ports(self.central_external_bridge,
                                    host_external_bridge)
Ejemplo n.º 4
0
 def connect_to_internal_network_via_vlans(self, host_data_bridge):
     # If using VLANs as a segmentation device, it's needed to connect
     # a provider bridge to a centralized, shared bridge.
     net_helpers.create_patch_ports(self.central_data_bridge,
                                    host_data_bridge)
Ejemplo n.º 5
0
 def connect_to_external_network(self, host_external_bridge):
     net_helpers.create_patch_ports(
         self.central_external_bridge, host_external_bridge)
Ejemplo n.º 6
0
 def connect_to_internal_network_via_vlans(self, host_data_bridge):
     # If using VLANs as a segmentation device, it's needed to connect
     # a provider bridge to a centralized, shared bridge.
     net_helpers.create_patch_ports(
         self.central_data_bridge, host_data_bridge)
Ejemplo n.º 7
0
 def connect_to_central_network_via_vlans(self, host_data_bridge):
     LOG.info('%s(): caller(): %s', log_utils.get_fname(1), log_utils.get_fname(2))
     # If using VLANs as a segmentation device, it's needed to connect
     # a provider bridge to a centralized, shared bridge.
     net_helpers.create_patch_ports(
         self.central_bridge, host_data_bridge)