def get_capability(self):

        logging.debug('get_capability ..')
        reply = ET.Element('reply')
        if not self._is_connected():
            if not self.connect():
                reply.text = 'NetConf Session could not be established {%s}</error>' % str(self)
                return reply

        self.disconnect()
        caps = self.handle.server_capabilities
        if caps:
            reply.text = '\n'.join(caps)
            logging.debug('Received device capabilities ..')
        return reply
Returns device capabilities
dataset/ETHPy150Open CiscoDevNet/yang-explorer/server/explorer/utils/runner.py/NCClient.get_capability