Skip to content

Commit

Permalink
Use 'format' parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
jbemmel committed May 4, 2024
1 parent 6c23e63 commit 1d7d505
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions napalm_srl/srl.py
Original file line number Diff line number Diff line change
Expand Up @@ -1680,7 +1680,7 @@ def get_config(
retrieve: str = "all",
full: bool = False,
sanitized: bool = False,
format: str = "text", # Currently ignored
format: str = "json", # This driver supports 'cli' or 'text' for CLI, or default 'json'
):
"""
:param retrieve: Which configuration type you want to populate, default is all of them. The rest will be set to “”.
Expand All @@ -1697,7 +1697,7 @@ def get_config(
"startup": ""
}

if self.running_format == 'cli':
if self.running_format == 'cli' or format in ['cli','text']:
if sanitized:
raise NotImplementedError(
"sanitized=True is not implemented with CLI format")
Expand Down

0 comments on commit 1d7d505

Please sign in to comment.