def get_version(self):
url = '<STR_LIT>' % (self.dcnm_protocol, self._ip)<EOL>payload = {}<EOL>try:<EOL><INDENT>res = self._send_request('<STR_LIT:GET>', url, payload, '<STR_LIT>')<EOL>if res and res.status_code in self._resp_ok:<EOL><INDENT>return res.json().get('<STR_LIT>')<EOL><DEDENT><DEDENT>except dexc.DfaClientRequestFailed as exc:<EOL><INDENT>LOG.error("<STR_LIT>")<EOL>sys.exit("<STR_LIT>", exc)<EOL><DEDENT>
Get the DCNM version.