def _install_local_cps(self, child_port_segmentation): self._add_classification_rule(child_port_segmentation) self._add_dispatch_rule(child_port_segmentation) port_locator.copy_port_binding( child_port_segmentation.port, child_port_segmentation.parent, ) child_port_segmentation.port.emit_bind_local()
def _install_local_cps(self, child_port_segmentation): implementations = self._get_segmentation_type_implementations( child_port_segmentation) for implementation in implementations: implementation.install_classification_rule(child_port_segmentation) implementation.install_dispatch_rule(child_port_segmentation) port_locator.copy_port_binding( child_port_segmentation.port, child_port_segmentation.parent, ) child_port_segmentation.port.emit_bind_local()
def _install_local_floatingip(self, floatingip): if self._get_external_cidr(floatingip).version != n_const.IP_VERSION_4: return self._install_ingress_nat_flows(floatingip) self._install_egress_nat_rules(floatingip) port_locator.copy_port_binding( floatingip.floating_lport, floatingip.lport, ) floatingip.floating_lport.emit_bind_local()
def _install_remote_floatingip(self, floatingip): port_locator.copy_port_binding(floatingip.floating_lport, floatingip.lport) floatingip.floating_lport.emit_bind_remote()
def _install_remote_cps(self, child_port_segmentation): port_locator.copy_port_binding( child_port_segmentation.port, child_port_segmentation.parent, ) child_port_segmentation.port.emit_bind_remote()