forked from ansible/ansible
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resource module for IOS static routes (ansible#64632)
* ios_static_routes
- Loading branch information
Showing
28 changed files
with
2,574 additions
and
1 deletion.
There are no files selected for viewing
Empty file.
85 changes: 85 additions & 0 deletions
85
lib/ansible/module_utils/network/ios/argspec/static_routes/static_routes.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
# | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2019 Red Hat | ||
# GNU General Public License v3.0+ | ||
# (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) | ||
|
||
############################################# | ||
# WARNING # | ||
############################################# | ||
# | ||
# This file is auto generated by the resource | ||
# module builder playbook. | ||
# | ||
# Do not edit this file manually. | ||
# | ||
# Changes to this file will be over written | ||
# by the resource module builder. | ||
# | ||
# Changes should be made in the model used to | ||
# generate this file or in the resource module | ||
# builder template. | ||
# | ||
############################################# | ||
|
||
""" | ||
The arg spec for the ios_static_routes module | ||
""" | ||
|
||
from __future__ import absolute_import, division, print_function | ||
__metaclass__ = type | ||
|
||
|
||
class Static_RoutesArgs(object): | ||
"""The arg spec for the ios_static_routes module | ||
""" | ||
|
||
def __init__(self, **kwargs): | ||
pass | ||
|
||
argument_spec = { | ||
'config': { | ||
'elements': 'dict', | ||
'options': { | ||
'vrf': {'type': 'str'}, | ||
'address_families': { | ||
'elements': 'dict', | ||
'type': 'list', | ||
'options': { | ||
'afi': {'required': True, 'choices': ['ipv4', 'ipv6'], 'type': 'str'}, | ||
'routes': { | ||
'elements': 'dict', | ||
'type': 'list', | ||
'options': { | ||
'dest': {'required': True, 'type': 'str'}, | ||
'topology': {'type': 'str'}, | ||
'next_hops': { | ||
'elements': 'dict', | ||
'type': 'list', | ||
'options': { | ||
'forward_router_address': {'type': 'str'}, | ||
'interface': {'type': 'str'}, | ||
'dhcp': {'type': 'bool'}, | ||
'distance_metric': {'type': 'int'}, | ||
'global': {'type': 'bool'}, | ||
'name': {'type': 'str'}, | ||
'multicast': {'type': 'bool'}, | ||
'permanent': {'type': 'bool'}, | ||
'tag': {'type': 'int'}, | ||
'track': {'type': 'int'} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
'type': 'list' | ||
}, | ||
'running_config': {'type': 'str'}, | ||
'state': { | ||
'choices': ['merged', 'replaced', 'overridden', 'deleted', 'gathered', 'rendered', 'parsed'], | ||
'default': 'merged', | ||
'type': 'str' | ||
} | ||
} |
Empty file.
Oops, something went wrong.