Fix junos cliconf commit api (#33458)
* In order to maintain a single api call across netconf and cli transport from module code change signature of commit api to accept genric args. * Fix doc string
This commit is contained in:
parent
5b5d767c0b
commit
f5a2e26ffd
1 changed files with 6 additions and 1 deletions
|
@ -72,7 +72,12 @@ class Cliconf(CliconfBase):
|
|||
def get(self, command, prompt=None, answer=None, sendonly=False):
|
||||
return self.send_command(command, prompt=prompt, answer=answer, sendonly=sendonly)
|
||||
|
||||
def commit(self, comment=None):
|
||||
def commit(self, *args, **kwargs):
|
||||
"""Execute commit command on remote device.
|
||||
:kwargs:
|
||||
comment: Optional commit description.
|
||||
"""
|
||||
comment = kwargs.get('comment', None)
|
||||
command = b'commit'
|
||||
if comment:
|
||||
command += b' comment {0}'.format(comment)
|
||||
|
|
Loading…
Reference in a new issue