mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-27 23:21:22 -07:00
httpapi fix nxos (#40806)
* httpapi fix nxos Signed-off-by: Trishna Guha <trishnaguha17@gmail.com> * nxos_hsrp fix Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
parent
36c8441c6d
commit
a7421e8611
4 changed files with 18 additions and 23 deletions
|
@ -94,8 +94,11 @@ class Cliconf(CliconfBase):
|
|||
def get_capabilities(self):
|
||||
result = {}
|
||||
result['rpc'] = self.get_base_rpc()
|
||||
result['network_api'] = 'cliconf'
|
||||
result['device_info'] = self.get_device_info()
|
||||
if isinstance(self._connection, NetworkCli):
|
||||
result['network_api'] = 'cliconf'
|
||||
else:
|
||||
result['network_api'] = 'eapi'
|
||||
return json.dumps(result)
|
||||
|
||||
# Imported from module_utils
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue