summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGomathiselviS <gomathiselvi@gmail.com>2021-05-17 15:26:10 -0400
committerGitHub <noreply@github.com>2021-05-17 19:26:10 +0000
commit58083777641f6e11b84d40de3a35400cda8c08a4 (patch)
tree2d0785fcf751422381bd94b3514bf2eea8f2b074 /plugins
parentb40a269ef86aff5928dfda162cad8a7e6884debb (diff)
downloadvyos.vyos-58083777641f6e11b84d40de3a35400cda8c08a4.tar.gz
vyos.vyos-58083777641f6e11b84d40de3a35400cda8c08a4.zip
linters fix (#160)
Replace admin_distance with distance while generating static_routes nexthop command Reviewed-by: https://github.com/apps/ansible-zuul
Diffstat (limited to 'plugins')
-rw-r--r--plugins/module_utils/network/vyos/config/static_routes/static_routes.py13
1 files changed, 4 insertions, 9 deletions
diff --git a/plugins/module_utils/network/vyos/config/static_routes/static_routes.py b/plugins/module_utils/network/vyos/config/static_routes/static_routes.py
index f1d4f38..61cb4ad 100644
--- a/plugins/module_utils/network/vyos/config/static_routes/static_routes.py
+++ b/plugins/module_utils/network/vyos/config/static_routes/static_routes.py
@@ -40,14 +40,9 @@ class Static_routes(ConfigBase):
The vyos_static_routes class
"""
- gather_subset = [
- "!all",
- "!min",
- ]
+ gather_subset = ["!all", "!min"]
- gather_network_resources = [
- "static_routes",
- ]
+ gather_network_resources = ["static_routes"]
def __init__(self, module):
super(Static_routes, self).__init__(module)
@@ -368,7 +363,7 @@ class Static_routes(ConfigBase):
key="next-hop",
attrib=hop["forward_router_address"]
+ " "
- + element,
+ + "distance",
value=str(hop[element]),
opr=opr,
)
@@ -475,7 +470,7 @@ class Static_routes(ConfigBase):
key="next-hop",
attrib=hop["forward_router_address"]
+ " "
- + element,
+ + "distance",
value=str(hop[element]),
remove=True,
)