Skip to content

Commit

Permalink
Remove obsolete tests / methods
Browse files Browse the repository at this point in the history
  • Loading branch information
mpenning committed Nov 29, 2023
1 parent 6cb9f82 commit 8b4f10a
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 283 deletions.
36 changes: 0 additions & 36 deletions ciscoconfparse/ciscoconfparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -3322,42 +3322,6 @@ def has_line_with(self, linespec):
)
return bool(matching_conftext)

# This method is on ConfigList()
@ junos_unsupported
@ logger.catch(reraise=True)
def insert_before_deprecated(self, exist_val, new_val, atomic=False):
"""
Insert new_val before all occurances of exist_val.
Parameters
----------
exist_val : str
An existing text value. This may match multiple configuration entries.
new_val : str
A new value to be inserted in the configuration.
atomic : bool
A boolean that controls whether the config is reparsed after the insertion (default False)
Returns
-------
list
An ios-style configuration list (indented by stop_width for each configuration level).
Examples
--------
>>> parse = CiscoConfParse(config=["a a", "b b", "c c", "b b"])
>>> # Insert 'g' before any occurance of 'b'
>>> retval = parse.insert_before("b b", "X X")
>>> parse.commit()
>>> parse.ioscfg
... ["a a", "X X", "b b", "c c", "X X", "b b"]
>>>
"""
raise NotImplementedError()

##############################################################################

# This method is on ConfigList()
@ logger.catch(reraise=True)
def insert_before(self, exist_val=None, new_val=None, atomic=False):
Expand Down
Loading

0 comments on commit 8b4f10a

Please sign in to comment.