Skip to content

Commit

Permalink
newly
Browse files Browse the repository at this point in the history
  • Loading branch information
Girish5tri committed Oct 18, 2024
1 parent 9669da0 commit b050f35
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions plugins/module_utils/network/ios/config/bgp_global/bgp_global.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,6 @@ def execute_module(self):
:returns: The result from module execution
"""
if self.state not in ["parsed", "gathered"]:
<<<<<<< Updated upstream
# self.want = self.handle_deprecates(self.want)
=======
>>>>>>> Stashed changes
self.generate_commands()
self.run_commands()
return self.result
Expand Down Expand Up @@ -465,27 +461,3 @@ def handle_deprecates(self, want, is_nbr=False):
if "number" in want["local_as"]:
want["local_as"]["asn"] = str(want["local_as"].pop("number"))
return want
<<<<<<< Updated upstream

# def handle_deprecates(self, want, is_nbr=False):
# """
# Handles deprecated values post rewrite
# neighbor.route_map [dict] - neighbor.route_maps [list:dict]

# Args:
# want (_type_): Handle want attributes for deprecated values
# is_nbr (bool, optional): activates neighbor part on recursion. Defaults to False.
# """
# if not is_nbr:
# if want.get("neighbors"):
# _want_nbrs = want.get("neighbors", {})
# for nbr in _want_nbrs:
# nbr = self.handle_deprecates(nbr, is_nbr=True)
# else:
# if "local_as" in want:
# if "number" in want["local_as"]:
# want["local_as"]["asn"] = str(want["local_as"]["number"])
# del want["local_as"]["number"]
# return want
=======
>>>>>>> Stashed changes

0 comments on commit b050f35

Please sign in to comment.