code: def _program_dcnm_static_route(self, tenant_id, tenant_name):
          
          in_ip_dict = self.get_in_ip_addr(tenant_id)
          in_gw = in_ip_dict.get('gateway')
          in_ip = in_ip_dict.get('subnet')
          if in_gw is None:
              LOG.error("No FW service GW present")
              return False
          out_ip_dict = self.get_out_ip_addr(tenant_id)
          out_ip = out_ip_dict.get('subnet')
  
          # Program DCNM to update profile's static IP address on OUT part
          excl_list = []
          excl_list.append(in_ip)
          excl_list.append(out_ip)
          subnet_lst = self.os_helper.get_subnet_nwk_excl(tenant_id, excl_list,
                                                          excl_part=True)
          # This count is for telling DCNM to insert the static route in a
          # particular position. Total networks created - exclusive list as
          # above - the network that just got created.
          srvc_node_ip = self.get_out_srvc_node_ip_addr(tenant_id)
          ret = self.dcnm_obj.update_partition_static_route(
              tenant_name, fw_const.SERV_PART_NAME, subnet_lst,
              vrf_prof=self.cfg.firewall.fw_service_part_vrf_profile,
              service_node_ip=srvc_node_ip)
          if not ret:
              LOG.error("Unable to update DCNM ext profile with static "
                        "route")
              return False
          return True
docs: Program DCNM Static Route.