Page Menu
Home
VyOS Platform
Search
Configure Global Search
Log In
Files
F119902197
vyos_ospfv3.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
4 KB
Referenced Files
None
Subscribers
None
vyos_ospfv3.py
View Options
#!/usr/bin/python
# -*- 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 module file for vyos_ospfv3
"""
from
__future__
import
absolute_import
,
division
,
print_function
__metaclass__
=
type
ANSIBLE_METADATA
=
{
'metadata_version'
:
'1.1'
,
'status'
:
[
'preview'
],
'supported_by'
:
'network'
}
DOCUMENTATION
=
"""
---
module: vyos_ospfv3
version_added: 2.10
short_description: OSPFv3 resource module.
description: This resource module configures and manages attributes of OSPFv3 routes on VyOS network devices.
author: Rohit Thakur (@rohitthakur2590)
options:
config:
description: A provided OSPFv3 route configuration.
type: dict
suboptions:
areas:
description: OSPFv3 area.
type: list
elements: dict
suboptions:
area_id:
description: OSPFv3 Area name/identity.
type: str
export_list:
description: Name of export-list.
type: str
import_list:
description: Name of import-list.
type: str
range:
description: Summarize routes matching prefix (border routers only).
type: list
elements: dict
suboptions:
address:
description: border router IPv4 address.
type: str
advertise:
description: Advertise this range.
type: bool
not_advertise:
description: Don't advertise this range.
type: bool
parameters:
descriptions: OSPFv3 specific parameters.
type: dict
suboptions:
router_id:
description: Override the default router identifier.
type: str
redistribute:
description: Redistribute information from another routing protocol.
type: list
elements: dict
suboptions:
route_type:
description: Route type to redistribute.
type: str
choices: ['bgp', 'connected', 'kernel', 'ripng', 'static']
route_map:
description: Route map references.
type: str
running_config:
description:
- The configuration to be parsed.
type: str
state:
description:
- The state the configuration should be left in.
type: str
choices:
- merged
- replaced
- deleted
- parsed
- gathered
- rendered
default: merged
"""
EXAMPLES
=
"""
"""
RETURN
=
"""
before:
description: The configuration prior to the model invocation.
returned: always
sample: >
The configuration returned will always be in the same format
of the parameters above.
after:
description: The resulting configuration model invocation.
returned: when changed
sample: >
The configuration returned will always be in the same format
of the parameters above.
commands:
description: The set of commands pushed to the remote device.
returned: always
type: list
sample: ['command 1', 'command 2', 'command 3']
"""
from
ansible.module_utils.basic
import
AnsibleModule
from
ansible_collections.vyos.vyos.plugins.module_utils.network.vyos.argspec.ospfv3.ospfv3
import
Ospfv3Args
from
ansible_collections.vyos.vyos.plugins.module_utils.network.vyos.config.ospfv3.ospfv3
import
Ospfv3
def
main
():
"""
Main entry point for module execution
:returns: the result form module invocation
"""
required_if
=
[
(
"state"
,
"merged"
,
(
"config"
,)),
(
"state"
,
"replaced"
,
(
"config"
,)),
(
"state"
,
"parsed"
,
(
"running_config"
,)),
]
mutually_exclusive
=
[(
"config"
,
"running_config"
)]
module
=
AnsibleModule
(
argument_spec
=
Ospfv3Args
.
argument_spec
,
required_if
=
required_if
,
supports_check_mode
=
True
,
mutually_exclusive
=
mutually_exclusive
,
)
result
=
Ospfv3
(
module
)
.
execute_module
()
module
.
exit_json
(
**
result
)
if
__name__
==
'__main__'
:
main
()
File Metadata
Details
Attached
Mime Type
text/x-script.python
Expires
Thu, Nov 26, 9:09 PM (1 d, 21 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4734255
Default Alt Text
vyos_ospfv3.py (4 KB)
Attached To
Mode
R52 VyOS Ansible Collection
Attached
Detach File
Event Timeline
Log In to Comment