From 683e120725c4b03b671ac66ce47b2fceccf6f8ba Mon Sep 17 00:00:00 2001 From: omnom62 <75066712+omnom62@users.noreply.github.com> Date: Mon, 28 Sep 2026 21:31:03 +1000 Subject: T8989: vyos_ospf_inferfaces dict_op rework (#31) * T8989: vyos_ospf_inferfaces dict_op rework * T8989: vyos_ospf_inferfaces Copilot comments * T8989: vyos_ospf_inferfaces Copilot comments * T8989: vyos_ospf_inferfaces Copilot comments * T8989: vyos_ospf_inferfaces Copilot comments * T8989: ospf_interfaces AI comment fixes * T8989: ospf_interfaces AI comment fixes --------- Co-authored-by: Daniil Baturin --- docs/vyos.rest.vyos_ospf_interfaces_module.rst | 57 ++++++++++++++------------ 1 file changed, 30 insertions(+), 27 deletions(-) (limited to 'docs') diff --git a/docs/vyos.rest.vyos_ospf_interfaces_module.rst b/docs/vyos.rest.vyos_ospf_interfaces_module.rst index 1439a71..60424ac 100644 --- a/docs/vyos.rest.vyos_ospf_interfaces_module.rst +++ b/docs/vyos.rest.vyos_ospf_interfaces_module.rst @@ -17,10 +17,7 @@ Version added: 1.0.0 Synopsis -------- -- Manages OSPF and OSPFv3 interface configuration on VyOS devices via the REST API. -- IPv4 OSPF maps to ``protocols ospf interface``. -- IPv6 OSPFv3 maps to ``protocols ospfv3 interface``. -- Uses REST API (``connection=httpapi``) instead of CLI. +- Manages OSPFv2 (IPv4) and OSPFv3 (IPv6) per-interface configuration on VyOS devices via the REST API. @@ -91,6 +88,23 @@ Parameters
Address family identifier.
+ + + + +
+ area + +
+ string +
+ + + + +
OSPF area to assign this interface to (set protocols ospf interface <name> area <id> for OSPFv2, set protocols ospfv3 interface <name> area <id> for OSPFv3). This is a per-interface alternative to enabling OSPF via area <id> network <prefix> -- VyOS's own documentation frames the network-based form as standard and this per-interface form as more convenient in some cases (many interfaces/subnets). Confirmed via VyOS's official documentation across 1.4+/1.5 LTS/rolling as the current syntax, distinct from and superseding the older (1.3-era) area <id> interface <name> form.
+ + @@ -198,7 +212,7 @@ Parameters -
Interface bandwidth in kbps (IPv4 only).
+
Interface bandwidth in Mbit/s (IPv4 only).
@@ -304,7 +318,7 @@ Parameters -
Disable MTU check (IPv4 only).
+
Disable MTU mismatch detection.
@@ -327,7 +341,7 @@ Parameters -
Network type (IPv4 only).
+
Network type.
@@ -348,7 +362,7 @@ Parameters -
Disable adjacency formation (IPv6 only).
+
Suppress adjacency formation on this interface.
@@ -460,6 +474,14 @@ Notes - ``ansible_network_os`` must be set to ``vyos.rest.vyos``. +See Also +-------- + +.. seealso:: + + :ref:`vyos.vyos.vyos_ospf_interfaces_module` + The official documentation on the **vyos.vyos.vyos_ospf_interfaces** module. + Examples -------- @@ -473,27 +495,8 @@ Examples address_family: - afi: ipv4 cost: 100 - transmit_delay: 50 - priority: 26 - - afi: ipv6 - dead_interval: 39 - passive: true state: merged - - name: Delete OSPF interface configuration - vyos.rest.vyos_ospf_interfaces: - config: - - name: eth1 - state: deleted - - - name: Delete all OSPF interface configuration - vyos.rest.vyos_ospf_interfaces: - state: deleted - - - name: Gather current OSPF interface configuration - vyos.rest.vyos_ospf_interfaces: - state: gathered - Return Values -- cgit v1.2.3