.. _vyos.rest.vyos_ospf_interfaces_module:
******************************
vyos.rest.vyos_ospf_interfaces
******************************
**Manage OSPF interface configuration on VyOS devices using REST API**
Version added: 1.0.0
.. contents::
:local:
:depth: 1
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.
Parameters
----------
.. raw:: html
| Parameter |
Choices/Defaults |
Comments |
|
config
list
/ elements=dictionary
|
|
List of OSPF interface configurations.
|
|
address_family
list
/ elements=dictionary
|
|
OSPF settings per address family.
|
|
|
afi
string
/ required
|
|
Address family identifier.
|
|
|
authentication
dictionary
|
|
Authentication settings (IPv4 only).
|
|
|
|
md5_key
dictionary
|
|
MD5 authentication key.
|
|
|
|
|
key
string
|
|
MD5 key string.
|
|
|
|
|
key_id
integer
|
|
MD5 key ID.
|
|
|
|
plaintext_password
string
|
|
Plaintext password.
|
|
|
bandwidth
integer
|
|
Interface bandwidth in kbps (IPv4 only).
|
|
|
cost
integer
|
|
Interface cost metric.
|
|
|
dead_interval
integer
|
|
Dead router detection interval in seconds.
|
|
|
hello_interval
integer
|
|
Hello packet interval in seconds.
|
|
|
ifmtu
integer
|
|
Interface MTU (IPv6 only).
|
|
|
instance
string
|
|
OSPFv3 instance ID (IPv6 only).
|
|
|
mtu_ignore
boolean
|
|
Disable MTU check (IPv4 only).
|
|
|
network
string
|
Choices:
- broadcast
- non-broadcast
- point-to-multipoint
- point-to-point
|
Network type (IPv4 only).
|
|
|
passive
boolean
|
|
Disable adjacency formation (IPv6 only).
|
|
|
priority
integer
|
|
Interface priority.
|
|
|
retransmit_interval
integer
|
|
LSA retransmit interval in seconds.
|
|
|
transmit_delay
integer
|
|
LSA transmit delay in seconds.
|
|
name
string
/ required
|
|
Interface name.
|
|
state
string
|
Choices:
merged ←
- replaced
- overridden
- deleted
- gathered
|
Desired state of the OSPF interface configuration.
merged adds or updates without removing existing config.
replaced replaces per-interface OSPF config for named interfaces.
overridden replaces all OSPF interface config.
deleted removes OSPF interface config.
gathered returns current configuration as structured data.
|