def register_segment_dcnm(self, cfg, seg_id_min, seg_id_max):
orch_id = cfg.dcnm.orchestrator_id<EOL>try:<EOL><INDENT>segid_range = self.dcnm_client.get_segmentid_range(orch_id)<EOL>if segid_range is None:<EOL><INDENT>self.dcnm_client.set_segmentid_range(orch_id, seg_id_min,<EOL>seg_id_max)<EOL><DEDENT>else:<EOL><INDENT>conf_min, _, conf_max = segid_range[<EOL>"<STR_LIT>"].partition("<STR_LIT:->")<EOL>if int(conf_min) != seg_id_min or int(conf_max) != seg_id_max:<EOL><INDENT>self.dcnm_client.update_segmentid_range(orch_id,<EOL>seg_id_min,<EOL>seg_id_max)<EOL><DEDENT><DEDENT><DEDENT>except dexc.DfaClientRequestFailed as exc:<EOL><INDENT>LOG.error("<STR_LIT>"<EOL>"<STR_LIT>", exc)<EOL>raise SystemExit(exc)<EOL><DEDENT>
Register segmentation id pool with DCNM.