summaryrefslogtreecommitdiff
path: root/plugins/module_utils/network/vyos/argspec/route_maps/route_maps.py
blob: b2038a48134bdf38d424af1504eadf9a0e8ce487 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
# -*- coding: utf-8 -*-
# Copyright 2021 Red Hat
# GNU General Public License v3.0+
# (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)

from __future__ import absolute_import, division, print_function


__metaclass__ = type

#############################################
#                WARNING                    #
#############################################
#
# This file is auto generated by the
# cli_rm_builder.
#
# Manually editing this file is not advised.
#
# To update the argspec make the desired changes
# in the module docstring and re-run
# cli_rm_builder.
#
#############################################

"""
The arg spec for the vyos_route_maps module
"""


class Route_mapsArgs(object):  # pylint: disable=R0903
    """The arg spec for the vyos_route_maps module"""

    def __init__(self, **kwargs):
        pass

    argument_spec = {
        "config": {
            "type": "list",
            "elements": "dict",
            "options": {
                "route_map": {"type": "str"},
                "entries": {
                    "aliases": ["rules"],
                    "type": "list",
                    "elements": "dict",
                    "options": {
                        "sequence": {"type": "int"},
                        "call": {"type": "str"},
                        "description": {"type": "str"},
                        "action": {
                            "type": "str",
                            "choices": ["deny", "permit"],
                        },
                        "continue_sequence": {"type": "int"},
                        "set": {
                            "type": "dict",
                            "options": {
                                "aggregator": {
                                    "type": "dict",
                                    "options": {
                                        "ip": {"type": "str"},
                                        "as": {"type": "str"},
                                    },
                                },
                                "as_path_exclude": {"type": "str"},
                                "as_path_prepend": {"type": "str"},
                                "atomic_aggregate": {"type": "bool"},
                                "bgp_extcommunity_rt": {"type": "str"},
                                "comm_list": {
                                    "type": "dict",
                                    "options": {
                                        "comm_list": {"type": "str"},
                                        "delete": {"type": "bool"},
                                    },
                                },
                                "community": {
                                    "type": "dict",
                                    "options": {"value": {"type": "str"}},
                                },
                                "extcommunity_rt": {"type": "str"},
                                "extcommunity_soo": {"type": "str"},
                                "ip_next_hop": {"type": "str"},
                                "ipv6_next_hop": {
                                    "type": "dict",
                                    "options": {
                                        "ip_type": {
                                            "type": "str",
                                            "choices": ["global", "local"],
                                        },
                                        "value": {"type": "str"},
                                    },
                                },
                                "large_community": {"type": "str"},
                                "local_preference": {"type": "str"},
                                "metric": {"type": "str"},
                                "metric_type": {
                                    "type": "str",
                                    "choices": ["type-1", "type-2"],
                                },
                                "origin": {
                                    "type": "str",
                                    "choices": ["egp", "igp", "incomplete"],
                                },
                                "originator_id": {"type": "str"},
                                "src": {"type": "str"},
                                "tag": {"type": "str"},
                                "weight": {"type": "str"},
                            },
                        },
                        "match": {
                            "type": "dict",
                            "options": {
                                "as_path": {"type": "str"},
                                "community": {
                                    "type": "dict",
                                    "options": {
                                        "community_list": {"type": "str"},
                                        "exact_match": {"type": "bool"},
                                    },
                                },
                                "extcommunity": {"type": "str"},
                                "interface": {"type": "str"},
                                "ip": {
                                    "type": "dict",
                                    "options": {
                                        "address": {
                                            "type": "dict",
                                            "options": {
                                                "list_type": {
                                                    "type": "str",
                                                    "choices": [
                                                        "access-list",
                                                        "prefix-list",
                                                    ],
                                                },
                                                "value": {"type": "str"},
                                            },
                                        },
                                        "next_hop": {
                                            "type": "dict",
                                            "options": {
                                                "list_type": {
                                                    "type": "str",
                                                    "choices": [
                                                        "access-list",
                                                        "prefix-list",
                                                    ],
                                                },
                                                "value": {"type": "str"},
                                            },
                                        },
                                        "route_source": {
                                            "type": "dict",
                                            "options": {
                                                "list_type": {
                                                    "type": "str",
                                                    "choices": [
                                                        "access-list",
                                                        "prefix-list",
                                                    ],
                                                },
                                                "value": {"type": "str"},
                                            },
                                        },
                                    },
                                },
                                "ipv6": {
                                    "type": "dict",
                                    "options": {
                                        "address": {
                                            "type": "dict",
                                            "options": {
                                                "list_type": {
                                                    "type": "str",
                                                    "choices": [
                                                        "access-list",
                                                        "prefix-list",
                                                    ],
                                                },
                                                "value": {"type": "str"},
                                            },
                                        },
                                        "next_hop": {"type": "str"},
                                    },
                                },
                                "large_community_large_community_list": {"type": "str"},
                                "metric": {"type": "int"},
                                "origin": {
                                    "type": "str",
                                    "choices": ["ebgp", "ibgp", "incomplete"],
                                },
                                "peer": {"type": "str"},
                                "rpki": {
                                    "type": "str",
                                    "choices": [
                                        "notfound",
                                        "invalid",
                                        "valid",
                                    ],
                                },
                            },
                        },
                        "on_match": {
                            "type": "dict",
                            "options": {
                                "next": {"type": "bool"},
                                "goto": {"type": "int"},
                            },
                        },
                    },
                },
            },
        },
        "running_config": {"type": "str"},
        "state": {
            "type": "str",
            "choices": [
                "deleted",
                "merged",
                "overridden",
                "replaced",
                "gathered",
                "rendered",
                "parsed",
            ],
            "default": "merged",
        },
    }  # pylint: disable=C0301