.. _vyos.rest.vyos_ospfv3_module: ********************* vyos.rest.vyos_ospfv3 ********************* **Manage OSPFv3 configuration on VyOS devices using REST API** Version added: 1.0.0 .. contents:: :local: :depth: 1 Synopsis -------- - Manages OSPFv3 configuration on VyOS devices via the REST API. - Uses REST API (``connection=httpapi``) instead of CLI. Parameters ---------- .. raw:: html
Parameter Choices/Defaults Comments
config
dictionary
OSPFv3 configuration.
areas
list / elements=dictionary
OSPFv3 areas.
area_id
string / required
Area identity.
export_list
string
Name of export-list.
import_list
string
Name of import-list.
range
list / elements=dictionary
Summarize routes matching prefix.
address
string / required
IPv6 prefix.
advertise
boolean
    Choices:
  • no
  • yes
Advertise this range.
not_advertise
boolean
    Choices:
  • no
  • yes
Do not advertise this range.
parameters
dictionary
OSPFv3 global parameters.
router_id
string
Router ID (IPv4 address format).
redistribute
list / elements=dictionary
Redistribute routes from another protocol.
route_map
string
Route map to apply.
route_type
string
    Choices:
  • bgp
  • connected
  • kernel
  • ripng
  • static
Protocol to redistribute.
state
string
    Choices:
  • merged ←
  • replaced
  • deleted
  • gathered
Desired state of the OSPFv3 configuration.
merged adds or updates without removing existing config.
replaced replaces the entire OSPFv3 configuration.
deleted removes OSPFv3 configuration.
gathered returns current configuration as structured data.

Notes ----- .. note:: - Requires ``ansible_connection=httpapi`` with the VyOS httpapi plugin. - ``ansible_network_os`` must be set to ``vyos.rest.vyos``. Examples -------- .. code-block:: yaml - name: Merge OSPFv3 configuration vyos.rest.vyos_ospfv3: config: parameters: router_id: 192.0.2.10 redistribute: - route_type: bgp areas: - area_id: "2" export_list: export1 import_list: import1 range: - address: "2001:db10::/32" - address: "2001:db20::/32" state: merged - name: Delete all OSPFv3 configuration vyos.rest.vyos_ospfv3: state: deleted - name: Gather current OSPFv3 configuration vyos.rest.vyos_ospfv3: state: gathered Return Values ------------- Common return values are documented `here `_, the following are the fields unique to this module: .. raw:: html
Key Returned Description
after
dictionary
when changed
OSPFv3 configuration after this module ran.

before
dictionary
always
OSPFv3 configuration before this module ran.

commands
list
always
List of API command tuples sent to the device.

gathered
dictionary
when state is gathered
Current OSPFv3 configuration as structured data.

response
dictionary
when changes are applied
Raw API response.

saved
boolean
when changes are applied
Whether the config was saved after changes.



Status ------ Authors ~~~~~~~ - VyOS Community (@vyos)