def _program_dcnm_static_route(self, tenant_id, tenant_name):
in_ip_dict = self.get_in_ip_addr(tenant_id)<EOL>in_gw = in_ip_dict.get('<STR_LIT>')<EOL>in_ip = in_ip_dict.get('<STR_LIT>')<EOL>if in_gw is None:<EOL><INDENT>LOG.error("<STR_LIT>")<EOL>return False<EOL><DEDENT>out_ip_dict = self.get_out_ip_addr(tenant_id)<EOL>out_ip = out_ip_dict.get('<STR_LIT>')<EOL>excl_list = []<EOL>excl_list.append(in_ip)<EOL>excl_list.append(out_ip)<EOL>subnet_lst = self.os_helper.get_subnet_nwk_excl(tenant_id, excl_list,<EOL>excl_part=True)<EOL>srvc_node_ip = self.get_out_srvc_node_ip_addr(tenant_id)<EOL>ret = self.dcnm_obj.update_partition_static_route(<EOL>tenant_name, fw_const.SERV_PART_NAME, subnet_lst,<EOL>vrf_prof=self.cfg.firewall.fw_service_part_vrf_profile,<EOL>service_node_ip=srvc_node_ip)<EOL>if not ret:<EOL><INDENT>LOG.error("<STR_LIT>"<EOL>"<STR_LIT>")<EOL>return False<EOL><DEDENT>return True<EOL>
Program DCNM Static Route.