def _create_fw(self, tenant_id, data):
LOG.debug("<STR_LIT>", data)<EOL>ret, in_sub, out_sub = self.attach_intf_router(tenant_id,<EOL>data.get('<STR_LIT>'),<EOL>data.get('<STR_LIT>'))<EOL>if not ret:<EOL><INDENT>LOG.error("<STR_LIT>"<EOL>"<STR_LIT:%s>", tenant_id)<EOL>return False<EOL><DEDENT>self.create_tenant_dict(tenant_id, data.get('<STR_LIT>'))<EOL>arg_dict = self._create_arg_dict(tenant_id, data, in_sub, out_sub)<EOL>ret = self.update_dcnm_partition_static_route(tenant_id, arg_dict)<EOL>if not ret:<EOL><INDENT>return False<EOL><DEDENT>ret = self.program_default_gw(tenant_id, arg_dict)<EOL>if not ret:<EOL><INDENT>return False<EOL><DEDENT>ret = self.program_next_hop(tenant_id, arg_dict)<EOL>if not ret:<EOL><INDENT>return False<EOL><DEDENT>ret = self.send_in_router_port_msg(tenant_id, arg_dict, '<STR_LIT>')<EOL>if not ret:<EOL><INDENT>return False<EOL><DEDENT>return self.send_out_router_port_msg(tenant_id, arg_dict, '<STR_LIT>')<EOL>
Internal routine that gets called when a FW is created.