---
title: OSPFv2
slug: aidc/ospfv2
createdAt: 2025-12-29T10:30:59.315Z
---

Open Shortest Path First version 2.

## <font color="#1d50a2">URLs Summary</font>

| **URL**                                                                                                                    | **GET** | **POST** | **PATCH** | **PUT** | **DELETE** |
| -------------------------------------------------------------------------------------------------------------------------- | ------- | -------- | --------- | ------- | ---------- |
| /rest/v1/rpc/clear-ip-ospf                                                                                                 | N       | Y        | N         | N       | N          |
| /rest/v1/rpc/graceful-restart-prepare-ip-ospf                                                                              | N       | Y        | N         | N       | N          |
| /rest/v1/running/ospfv2-interfaces/&#x7B;name}/&#x7B;address}                                                              | Y       | Y        | Y         | N       | Y          |
| /rest/v1/running/ospfv2-interfaces/&#x7B;name}/&#x7B;address}/authentication/&#x7B;key-id}                                 | Y       | Y        | N         | N       | Y          |
| /rest/v1/running/ospfv2/&#x7B;vrf-name}                                                                                    | Y       | Y        | Y         | N       | Y          |
| /rest/v1/running/ospfv2/&#x7B;vrf-name}/areas/&#x7B;area-id}                                                               | Y       | Y        | Y         | N       | Y          |
| /rest/v1/running/ospfv2/&#x7B;vrf-name}/areas/&#x7B;area-id}/area-ranges/&#x7B;ip-prefix}                                  | Y       | Y        | Y         | N       | Y          |
| /rest/v1/running/ospfv2/&#x7B;vrf-name}/areas/&#x7B;area-id}/virtual-link/&#x7B;neighbor}                                  | Y       | Y        | Y         | N       | Y          |
| /rest/v1/running/ospfv2/&#x7B;vrf-name}/areas/&#x7B;area-id}/virtual-link/&#x7B;neighbor}/message-digest-key/&#x7B;key-id} | Y       | Y        | N         | N       | Y          |
| /rest/v1/running/ospfv2/&#x7B;vrf-name}/distribute-route/&#x7B;protocol}/&#x7B;direction}                                  | Y       | Y        | Y         | N       | Y          |
| /rest/v1/running/ospfv2/&#x7B;vrf-name}/graceful-restart-helper/&#x7B;address}                                             | Y       | Y        | Y         | N       | Y          |
| /rest/v1/running/ospfv2/&#x7B;vrf-name}/neighbor/&#x7B;ip}                                                                 | Y       | Y        | Y         | N       | Y          |
| /rest/v1/running/ospfv2/&#x7B;vrf-name}/network/&#x7B;prefix}                                                              | Y       | Y        | Y         | N       | Y          |
| /rest/v1/running/ospfv2/&#x7B;vrf-name}/saddress/&#x7B;address}                                                            | Y       | Y        | Y         | N       | Y          |
| /rest/v1/running/ospfv2/&#x7B;vrf-name}/spf                                                                                | Y       | N        | Y         | N       | N          |
| /rest/v1/rpc/show-ip-ospf-database                                                                                         | N       | Y        | N         | N       | N          |
| /rest/v1/rpc/show-ip-ospf-interface                                                                                        | N       | Y        | N         | N       | N          |
| /rest/v1/rpc/show-ip-ospf-neighbor                                                                                         | N       | Y        | N         | N       | N          |
| /rest/v1/rpc/show-ip-ospf-route                                                                                            | N       | Y        | N         | N       | N          |

## <font color="#1d50a2">Examples</font>

### <font color="#1d50a2">Clear ip ospf</font>

```json
POST HTTPS://{switch IP}/rest/v1/rpc/clear-ip-ospf
```

### <font color="#1d50a2">Graceful restart prepare ip ospf</font>

```json
POST HTTPS://{switch IP}/rest/v1/rpc/graceful-restart-prepare-ip-ospf
```

### <font color="#1d50a2">Show ip ospf database</font>

```json
POST HTTPS://{switch IP}/rest/v1/rpc/show-ip-ospf-database
```

### <font color="#1d50a2">Show ip ospf interface</font>

```json
POST HTTPS://{switch IP}/rest/v1/rpc/show-ip-ospf-interface
```

### <font color="#1d50a2">Show ip ospf neighbor</font>

```json
POST HTTPS://{switch IP}/rest/v1/rpc/show-ip-ospf-neighbor
```

### <font color="#1d50a2">Show ip ospf route</font>

```json
POST HTTPS://{switch IP}/rest/v1/rpc/show-ip-ospf-route
```

### <font color="#1d50a2">Create an ospfv2 interface</font>

```json
POST HTTPS://{switch IP}/rest/v1/running/ospfv2-interfaces
{
    "name": "Ethernet1",
    "address": "20.1.1.1",
    "area-id": "0.0.0.10",
    "authentication-type": "TEXT",
    "bfd-enable": "true",
    "metric": "50",
    "dead-interval": "50",
    "ttl": "5",
    "hello-multiplier": "10",
    "hello-interval": "50",
    "mtu-ignore": "true",
    "network-type": "broadcast",
    "priority": "50",
    "retransmission-interval": "50",
    "transmit-delay": "50",
    "passive": "true",
    "bfd-profile": "test"
}
```

### <font color="#1d50a2">Create authentication for an OSPFv2 interface</font>

```json
POST HTTPS://{switch IP}/rest/v1/running/ospfv2-interfaces/Ethernet1/20.1.1.1/authentication
{
    "key-id": 11,
    "md5-key": "1"
}
```

### <font color="#1d50a2">Modify OSPFv2 configurations in a VRF</font>

```json
PATCH HTTPS://{switch IP}/rest/v1/running/ospfv2/Vrf2
{
    "as": "true",
    "area": "0.0.0.10"
}
```

### <font color="#1d50a2">Create an OSPFv2 area in VRF</font>

```json
POST HTTPS://{switch IP}/rest/v1/running/ospfv2/default/areas
{
    "area-id": "0.0.0.130",
    "default-cost": 130,
    "stub": "true",
    "stub-no-summary": "true",
    "nssa-translator-role": "never",
    "nssa-no-summary": "true",
    "suppress-fa": "false"
}
```

### <font color="#1d50a2">Create an area range in VRF</font>

```json
POST HTTPS://{switch IP}/rest/v1/running/ospfv2/default/areas/31/area-ranges
{
    "ip-prefix": "1.2.7.4/24",
    "cost": 70,
    "advertise": "true"
}
```

### <font color="#1d50a2">Create an OSPFv2 virtual link</font>

```json
POST HTTPS://{switch IP}/rest/v1/running/ospfv2/default/areas/21/virtual-link
{
    "neighbor": "1.2.3.4",
    "enable": "true"
}
```

### <font color="#1d50a2">Create an OSPFv2 message digest key</font>

```json
POST HTTPS://{switch IP}/rest/v1/running/ospfv2/Vrf1/areas/0.0.0.10/virtual-link/1.2.3.4/message-digest-key
{
    "key-id": 13,
    "md5-key": "123"
}
```

### <font color="#1d50a2">Create an OSPFv2 distribute route</font>

```json
POST HTTPS://{switch IP}/rest/v1/running/ospfv2/default/distribute-route
{
    "protocol": "bgp",
    "direction": "OUT",
    "access-list": "test_access_list"
}
```

### <font color="#1d50a2">Create an OSPFv2 graceful restart helper</font>

```json
POST HTTPS://{switch IP}/rest/v1/running/ospfv2/default/graceful-restart-helper
{
    "address": "1000",
    "enable": "true"
}
```

### <font color="#1d50a2">Create an OSPFv2 neighbor in VRF "default"</font>

```json
POST HTTPS://{switch IP}/rest/v1/running/ospfv2/default/neighbor
{
    "ip": "1.2.3.8",
    "enable": "true",
    "priority": 30,
    "poll-interval": 65536
}
```

### <font color="#1d50a2">Create an OSPFv2 network</font>

```json
POST HTTPS://{switch IP}/rest/v1/running/ospfv2/Vrf1/network
{
    "prefix": "1.2.7.4/24",
    "area": "70"
}
```

### <font color="#1d50a2">Create an OSPFv2 summary address</font>

```json
POST HTTPS://{switch IP}/rest/v1/running/ospfv2/default/saddress
{
    "address": "1.2.8.4/24",
    "enable": "true",
    "tag": 4294967296,
    "no-advertise": "true"
}
```

### <font color="#1d50a2">Modify SPF in VRF</font>

```json
PATCH HTTPS://{switch IP}/rest/v1/running/ospfv2/default/spf
{
    "initial-delay": null,
    "initial-holdtime": 70,
    "maximum-holdtime": 90
}
```

## <font color="#1d50a2">Properties Descriptions</font>

### <font color="#1d50a2">OSPFv2 global</font>

**Tree Diagrams**

```plaintext
  +--rw ospfv2
  |  +--rw ospfv2-instance* [vrf-name]
  |     +--rw vrf-name
  |     +--rw enable?
  |     +--rw router-id?
  |     +--rw capability-opaque?
  |     +--rw graceful-restart?
  |     +--rw grace-period?
  |     +--rw abr-type?
  |     +--rw auto-cost-reference-bandwidth?
  |     +--rw compatible-rfc1583?
  |     +--rw default-metric?
  |     +--rw log-adjacency-changes?
  |     +--rw maximum-paths?
  |     +--rw proactive-arp?
  |     +--rw opaque-lsa?
  |     +--rw rfc1583compatibility?
  |     +--rw fast-reroute-ti-lfa?
  |     +--rw fast-reroute-ti-lfa-node-protection?
  |     +--rw (router-info)?
  |     |  +--:(as)
  |     |  |  +--rw as?
  |     |  +--:(area)
  |     |     +--rw area?
  |     +--rw write-multiplier?
  |     +--rw passive-interface-default?
```

**Table of Properties**

| **Name**                            | **Required** | **Type/Range**                          | **Description**                                                                                                                             |
| ----------------------------------- | ------------ | --------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| ospfv2                              | M            |                                         | Path-only node, has no configurable value.<br />Top-level configuration for the OSPFv2 router.                                              |
| vrf-name                            | M            | "default"<br />vrf name                 | (sub-property of ospfv2)<br />Name of VRF instance.                                                                                         |
| enable                              | O            | "true"<br />"false"                     | (sub-property of ospfv2)<br />Enable OSPFv2                                                                                                 |
| router-id                           | O            | A.B.C.D                                 | (sub-property of ospfv2)<br />Router-id for the OSPF process.                                                                               |
| capability-opaque                   | O            | "true"<br />"false"                     | (sub-property of ospfv2)<br />Opaque LSA.<br />Default value: "false"                                                                       |
| graceful-restart                    | O            | "true"<br />"false"                     | (sub-property of ospfv2)<br />Enable OSPF graceful-restart.<br />Default value: "false"                                                     |
| grace-period                        | O            | 1..1800                                 | (sub-property of ospfv2)<br />Time to wait before restarting the OSPF session.<br />Default value: 120                                      |
| abr-type                            | O            | "cisco"<br />"shortcut"<br />"standard" | (sub-property of ospfv2)<br />Area border router type.<br />Default value: "cisco"                                                          |
| auto-cost-reference-bandwidth       | O            | 1..4294967                              | (sub-property of ospfv2)<br />The reference bandwidth in terms of Mbits per second.                                                         |
| compatible-rfc1583                  | O            | "true"<br />"false"                     | (sub-property of ospfv2)<br />Compatible with RFC 1583.                                                                                     |
| default-metric                      | O            | 0..16777214                             | (sub-property of ospfv2)<br />Metric of redistributed routes.                                                                               |
| log-adjacency-changes               | O            | "DETAIL"<br />"BRIEF"                   | (sub-property of ospfv2)<br />Enbale recording adjacency changes log.                                                                       |
| maximum-paths                       | O            | 1..256                                  | (sub-property of ospfv2)<br />Control the maximum number of equal cost paths<br />Default value: 256                                        |
| proactive-arp                       | O            | "true"<br />"false"                     | (sub-property of ospfv2)<br />Enables or disables sending ARP requests to update neighbor table entries.<br />Default value: "true"         |
| opaque-lsa                          | O            | "true"<br />"false"                     | (sub-property of ospfv2)<br />Enable the Opaque-LSA capability (RFC2370)                                                                    |
| rfc1583compatibility                | O            | "true"<br />"false"                     | (sub-property of ospfv2)<br />Enable the RFC 1583 compatibility flag.                                                                       |
| fast-reroute-ti-lfa                 | O            | "true"<br />"false"                     | (sub-property of ospfv2)<br />Activates TI-LFA for all interfaces.                                                                          |
| fast-reroute-ti-lfa-node-protection | O            | "true"<br />"false"                     | (sub-property of ospfv2)<br />Activates TI-LFA and Protection for node fault                                                                |
| as                                  | O            | "true"<br />"false"                     | (sub-property of ospfv2)<br />Mutually exclusive with:<br />- area<br />Enable the Router Information functionality with AS flooding scope. |
| area                                | O            | "true"<br />"false"                     | (sub-property of ospfv2)<br />Mutually exclusive with:<br />- as<br />Enable the Router Information functionality with Area flooding scope. |
| write-multiplier                    | O            | 1..100                                  | (sub-property of ospfv2)<br />The amount of work done in the packet read and write threads.<br />Default value: 20                          |
| passive-interface-default           | O            | "true"<br />"false"                     | (sub-property of ospfv2)<br />Make all interfaces that belong to this router passive by default.                                            |

### <font color="#1d50a2">OSPFv2 areas for VRF</font>

**Tree Diagrams**

```plaintext
  +--rw ospfv2
  |  +--rw ospfv2-instance* [vrf-name]
  |     +--rw vrf-name
  |     +--rw areas
  |     |  +--rw area* [area-id]
  |     |     +--rw area-id
  |     |     +--rw default-cost?
  |     |     +--rw filter-list-in?
  |     |     +--rw filter-list-out?
  |     |     +--rw shortcut?
  |     |     +--rw authentication-type?
  |     |     +--rw authentication-key?
  |     |     +--rw nssa-no-summary?
  |     |     +--rw suppress-fa?
  |     |     +--rw nssa-translator-role?
  |     |     +--rw stub?
  |     |     +--rw stub-no-summary?
  |     |     +--rw virtual-link* [neighbor]
  |     |     |  +--rw neighbor
  |     |     |  +--rw enable?
  |     |     |  +--rw authentication-type?
  |     |     |  +--rw authentication-key?
  |     |     |  +--rw message-digest-key* [key-id]
  |     |     |  |  +--rw key-id
  |     |     |  |  +--rw md5-key?
  |     |     |  +--rw dead-interval?
  |     |     |  +--rw hello-interval?
  |     |     |  +--rw retransmit-interval?
  |     |     |  +--rw transmit-delay?
  |     |     +--rw area-ranges
  |     |        +--rw area-range* [ip-prefix]
  |     |           +--rw ip-prefix
  |     |           +--rw cost?
  |     |           +--rw substitute?
  |     |           +--rw advertise?
```

**Table of Properties**

| **Name**             | **Required** | **Type/Range**                                                                           | **Description**                                                                                                |
| -------------------- | ------------ | ---------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- |
| ospfv2               | M            |                                                                                          | Path-only node, has no configurable value.<br />Top-level configuration for the OSPFv2 router.                 |
| vrf-name             | M            | "default"<br />vrf name                                                                  | (sub-property of ospfv2)<br />Name of VRF instance.                                                            |
| areas                | M            |                                                                                          | (sub-property of ospfv2)<br />Path-only node, has no configurable value.                                       |
| area-id              | M            | A.B.C.D                                                                                  | (sub-property of areas)<br /> 32-bit number identifying the OSPF area.                                         |
| default-cost         | O            | 0..16777215                                                                              | (sub-property of areas)<br /> Advertised default summary cost.                                                 |
| filter-list-in       | O            | string                                                                                   | (sub-property of areas)<br />Filter networks getting in OSPF areas.                                            |
| filter-list-out      | O            | string                                                                                   | (sub-property of areas)<br />Filter networks getting out OSPF areas.                                           |
| shortcut             | O            | "default"<br />"disable"<br />"enable"                                                   | (sub-property of areas)<br />Configure the area as Shortcut capable.<br />Default value: "default"             |
| authentication-type  | O            | "MD5HMAC"<br />"TEXT"<br />"NONE"                                                        | (sub-property of areas)<br />Authentication type.                                                              |
| authentication-key   | O            | A string that represents a credential, such as a password or a key for OSPF/BGP sessions | (sub-property of areas)<br />Simple text OSPF password.                                                        |
| nssa-no-summary      | O            | "true"<br />"false"                                                                      | (sub-property of areas)<br />Do not inject inter-area routes into nssa.<br />Default value: "false"            |
| suppress-fa          | O            | "true"<br />"false"                                                                      | (sub-property of areas)<br />Suppress Forwarding Address generation.<br />Default value: "false"               |
| nssa-translator-role | O            | "always"<br />"candidate"<br />"never"                                                   | (sub-property of areas)<br />Nssa area translator role.                                                        |
| stub                 | O            | "true"<br />"false"                                                                      | (sub-property of areas)<br />Config the area as stub area.                                                     |
| stub-no-summary      | O            | "true"<br />"false"                                                                      | (sub-property of areas)<br />Do not inject inter-area routes into stub<br />Default value: "false"             |
| virtual-link         | M            |                                                                                          | (sub-property of areas)<br />Path-only node, has no configurable value.<br />Virtual link parameters.          |
| neighbor             | M            | A.B.C.D                                                                                  | (sub-property of virtual-link)<br />Router ID of the remote ABR.                                               |
| enable               | O            | "true"<br />"false"                                                                      | (sub-property of virtual-link)<br />Enable virtual link.                                                       |
| authentication-type  | O            | "MD5HMAC"<br />"TEXT"<br />"NONE"                                                        | (sub-property of virtual-link)<br />Authentication type.                                                       |
| authentication-key   | O            | A string that represents a credential, such as a password or a key for OSPF/BGP sessions | (sub-property of virtual-link)<br />Simple text OSPF password.                                                 |
| message-digest-key   | M            |                                                                                          | (sub-property of virtual-link)<br />Path-only node, has no configurable value.                                 |
| key-id               | M            | 0..255                                                                                   | (sub-property of message-digest-key)<br />Key id                                                               |
| md5-key              | O            | A string that represents a credential, such as a password or a key for OSPF/BGP sessions | (sub-property of message-digest-key)<br />The OSPF password.                                                   |
| dead-interval        | O            | 1..65535                                                                                 | (sub-property of virtual-link)<br />Interval time after which a neighbor is declared down.                     |
| hello-interval       | O            | 1..65535                                                                                 | (sub-property of virtual-link)<br />Time between HELLO packets.                                                |
| retransmit-interval  | O            | 1..65535                                                                                 | (sub-property of virtual-link)<br />Time between retransmitting lost link state advertisements.                |
| transmit-delay       | O            | 1..65535                                                                                 | (sub-property of virtual-link)<br />Link state transmit delay.                                                 |
| area-ranges          | M            |                                                                                          | (sub-property of areas)<br />Path-only node, has no configurable value.                                        |
| ip-prefix            | M            | A.B.C.D/M                                                                                | (sub-property of area-ranges)<br />Designated IP range.                                                        |
| cost                 | O            | 0..16777215                                                                              | (sub-property of area-ranges)<br />Set an explicit metric.                                                     |
| substitute           | O            | A.B.C.D/M                                                                                | (sub-property of area-ranges)<br />Substitute summarized prefix with another prefix.                           |
| advertise            | O            | "true"<br />"false"                                                                      | (sub-property of area-ranges)<br />Summarize intra area paths from specified area into one Type-3 summary-LSA. |

### <font color="#1d50a2">OSPFv2 distance for VRF</font>

**Tree Diagrams**

```plaintext
  +--rw ospfv2
  |  +--rw ospfv2-instance* [vrf-name]
  |     +--rw vrf-name
  |     +--rw all?
  |     +--rw inter-area?
  |     +--rw intra-area?
  |     +--rw external?
```

**Table of Properties**

| **Name**   | **Required** | **Type/Range**          | **Description**                                                                                |
| ---------- | ------------ | ----------------------- | ---------------------------------------------------------------------------------------------- |
| ospfv2     | M            |                         | Path-only node, has no configurable value.<br />Top-level configuration for the OSPFv2 router. |
| vrf-name   | M            | "default"<br />vrf name | (sub-property of ospfv2)<br />Name of VRF instance.                                            |
| all        | O            | 0..255                  | (sub-property of ospfv2)<br />Preference for intra-area, inter-area, and external routes.      |
| inter-area | O            | 0..255                  | (sub-property of ospfv2)<br />Preference for inter-area routes.                                |
| intra-area | O            | 0..255                  | (sub-property of ospfv2)<br />Preference for intra-area routes.                                |
| external   | O            | 0..255                  | (sub-property of ospfv2)<br />Preference for AS external and NSSA routes.                      |

### <font color="#1d50a2">OSPFv2 saddress for VRF</font>

**Tree Diagrams**

```plaintext
  +--rw ospfv2
  |  +--rw ospfv2-instance* [vrf-name]
  |     +--rw vrf-name
  |     +--rw saddress* [address]
  |     |  +--rw address
  |     |  +--rw enable?
  |     |  +--rw tag?
  |     |  +--rw no-advertise?
```

**Table of Properties**

| **Name**     | **Required** | **Type/Range**          | **Description**                                                                                |
| ------------ | ------------ | ----------------------- | ---------------------------------------------------------------------------------------------- |
| ospfv2       | M            |                         | Path-only node, has no configurable value.<br />Top-level configuration for the OSPFv2 router. |
| vrf-name     | M            | "default"<br />vrf name | (sub-property of ospfv2)<br />Name of VRF instance.                                            |
| saddress     | M            |                         | (sub-property of ospfv2)<br />Path-only node, has no configurable value.                       |
| address      | M            | A.B.C.D/M               | (sub-property of saddress)<br />IP address to distribute summary.                              |
| enable       | O            | "true"<br />"false"     | (sub-property of saddress)<br />Enable summary address.                                        |
| tag          | O            | 1..4294967295           | (sub-property of saddress)<br />Tag for summary route                                          |
| no-advertise | O            | "true"<br />"false"     | (sub-property of saddress)<br />Don't advertise the summary address to others                  |

### <font color="#1d50a2">OSPFv2 graceful restart helper for VRF</font>

**Tree Diagrams**

```plaintext
  +--rw ospfv2
  |  +--rw ospfv2-instance* [vrf-name]
  |     +--rw vrf-name
  |     +--rw graceful-restart-helper* [address]
  |     |  +--rw address
  |     |  +--rw enable?
  |     +--rw graceful-restart-helper-enable?
  |     +--rw strict-lsa-checking?
  |     +--rw planned-only?
  |     +--rw supported-grace-time-interval?
```

**Table of Properties**

| **Name**                       | **Required** | **Type/Range**          | **Description**                                                                                |
| ------------------------------ | ------------ | ----------------------- | ---------------------------------------------------------------------------------------------- |
| ospfv2                         | M            |                         | Path-only node, has no configurable value.<br />Top-level configuration for the OSPFv2 router. |
| vrf-name                       | M            | "default"<br />vrf name | (sub-property of ospfv2)<br />Name of VRF instance.                                            |
| graceful-restart-helper        | M            |                         | (sub-property of ospfv2)<br />Path-only node, has no configurable value.                       |
| address                        | M            | A.B.C.D                 | (sub-property of graceful-restart-helper)<br />IP address to enable graceful-restart helper    |
| enable                         | O            | "true"<br />"false"     | (sub-property of graceful-restart-helper)<br />Enable graceful-restart helper                  |
| graceful-restart-helper-enable | O            | "true"<br />"false"     | (sub-property of ospfv2)<br />Enable graceful-restart helper                                   |
| strict-lsa-checking            | O            | "true"<br />"false"     | (sub-property of ospfv2)<br />Enabel strict LSA checking.                                      |
| planned-only                   | O            | "true"<br />"false"     | (sub-property of ospfv2)<br />Only implement planned restart.                                  |
| supported-grace-time-interval  | O            | 10..1800                | (sub-property of ospfv2)<br />Supported grace time as graceful-restart helper.                 |

### <font color="#1d50a2">OSPFv2 max metric for VRF</font>

Advertise own Router-LSA with infinite distance (stub router).
**Tree Diagrams**

```plaintext
  +--rw ospfv2
  |  +--rw ospfv2-instance* [vrf-name]
  |     +--rw vrf-name
  |     +--rw administrative?
  |     +--rw on-shutdown?
  |     +--rw on-startup?
```

**Table of Properties**

| **Name**       | **Required** | **Type/Range**          | **Description**                                                                                |
| -------------- | ------------ | ----------------------- | ---------------------------------------------------------------------------------------------- |
| ospfv2         | M            |                         | Path-only node, has no configurable value.<br />Top-level configuration for the OSPFv2 router. |
| vrf-name       | M            | "default"<br />vrf name | (sub-property of ospfv2)<br />Name of VRF instance.                                            |
| administrative | O            | "true"<br />"false"     | (sub-property of ospfv2)<br />Administratively applied, for an indefinite period.              |
| on-shutdown    | O            | 5..100                  | (sub-property of ospfv2)<br />Advertise stub-router prior to full shutdown of OSPF.            |
| on-startup     | O            | 5..86400                | (sub-property of ospfv2)<br />Automatically advertise stub Router-LSA on startup of OSPF.      |

### <font color="#1d50a2">OSPFv2 neighbor for VRF</font>

**Tree Diagrams**

```plaintext
  +--rw ospfv2
  |  +--rw ospfv2-instance* [vrf-name]
  |     +--rw vrf-name
  |     +--rw neighbor* [ip]
  |     |  +--rw ip
  |     |  +--rw enable?
  |     |  +--rw priority?
  |     |  +--rw poll-interval?
```

**Table of Properties**

| **Name**      | **Required** | **Type/Range**          | **Description**                                                                                                    |
| ------------- | ------------ | ----------------------- | ------------------------------------------------------------------------------------------------------------------ |
| ospfv2        | M            |                         | Path-only node, has no configurable value.<br />Top-level configuration for the OSPFv2 router.                     |
| vrf-name      | M            | "default"<br />vrf name | (sub-property of ospfv2)<br />Name of VRF instance.                                                                |
| neighbor      | M            |                         | (sub-property of ospfv2)<br />Path-only node, has no configurable value.<br />Neighbor list.                       |
| ip            | M            | A.B.C.D                 | (sub-property of neighbor)<br />Neighbor IP address.                                                               |
| enable        | O            | "true"<br />"false"     | (sub-property of neighbor)<br />Configures OSPF neighbors for NBMA and point-to-multipoint non-broadcast networks. |
| priority      | O            | 0..255                  | (sub-property of neighbor)<br />Neighbor Priority.                                                                 |
| poll-interval | O            | 1..65535                | (sub-property of neighbor)<br />Dead Neighbor Polling interval.                                                    |

### <font color="#1d50a2">OSPFv2 networks for VRF</font>

**Tree Diagrams**

```plaintext
  +--rw ospfv2
  |  +--rw ospfv2-instance* [vrf-name]
  |     +--rw vrf-name
  |     +--rw network* [prefix]
  |     |  +--rw prefix
  |     |  +--rw area?
```

**Table of Properties**

| **Name** | **Required** | **Type/Range**          | **Description**                                                                                                     |
| -------- | ------------ | ----------------------- | ------------------------------------------------------------------------------------------------------------------- |
| ospfv2   | M            |                         | Path-only node, has no configurable value.<br />Top-level configuration for the OSPFv2 router.                      |
| vrf-name | M            | "default"<br />vrf name | (sub-property of ospfv2)<br />Name of VRF instance.                                                                 |
| network  | M            |                         | (sub-property of ospfv2)<br />Path-only node, has no configurable value.<br />Enable routing on list of IP network. |
| prefix   | M            | A.B.C.D/M               | (sub-property of network)<br />Prefix on which routing needs to be enabled.                                         |
| area     | O            | A.B.C.D                 | (sub-property of network)<br />Area ID for this network.                                                            |

### <font color="#1d50a2">OSPFv2 distribute route for VRF</font>

**Tree Diagrams**

```plaintext
  +--rw ospfv2
  |  +--rw ospfv2-instance* [vrf-name]
  |     +--rw vrf-name
  |     +--rw distribute-route* [protocol direction]
  |     |  +--rw protocol
  |     |  +--rw direction
  |     |  +--rw route-map?
  |     |  +--rw access-list?
  |     |  +--rw always?
  |     |  +--rw metric?
  |     |  +--rw metric-type?
```

**Table of Properties**

| **Name**         | **Required** | **Type/Range**                                                                                                                                                                                                                         | **Description**                                                                                |
| ---------------- | ------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
| ospfv2           | M            |                                                                                                                                                                                                                                        | Path-only node, has no configurable value.<br />Top-level configuration for the OSPFv2 router. |
| vrf-name         | M            | "default"<br />vrf name                                                                                                                                                                                                                | (sub-property of ospfv2)<br />Name of VRF instance.                                            |
| distribute-route | M            |                                                                                                                                                                                                                                        | (sub-property of ospfv2)<br />Path-only node, has no configurable value.                       |
| protocol         | M            | "kernel"<br />"connected"<br />"local"<br />"static"<br />"rip"<br />"ospf"<br />"isis"<br />"bgp"<br />"eigrp"<br />"nhrp"<br />"table"<br />"vnc"<br />"vnc-direct"<br />"babel"<br />"sharp"<br />"openfabric"<br />"default-route" | (sub-property of distribute-route)<br />Protocol to import.                                    |
| direction        | M            | "IMPORT"<br />"EXPORT"                                                                                                                                                                                                                 | (sub-property of distribute-route)<br />Export or import router.                               |
| route-map        | O            | string                                                                                                                                                                                                                                 | (sub-property of distribute-route)<br />Route map reference.                                   |
| access-list      | O            | string                                                                                                                                                                                                                                 | (sub-property of distribute-route)<br />Access-list filter name.                               |
| always           | O            | "true"<br />"false"                                                                                                                                                                                                                    | (sub-property of distribute-route)<br />Always advertise default route.                        |
| metric           | O            | 0..16777214                                                                                                                                                                                                                            | (sub-property of distribute-route)<br />OSPF default metric.                                   |
| metric-type      | O            | "TYPE\_1"<br />"TYPE\_2"                                                                                                                                                                                                               | (sub-property of distribute-route)<br />Metric type (1/2).                                     |

### <font color="#1d50a2">OSPFv2 timer for VRF</font>

**Tree Diagrams**

```plaintext
  +--rw ospfv2
  |  +--rw ospfv2-instance* [vrf-name]
  |     +--rw vrf-name
  |     +--rw distribute-route* [protocol direction]
  |     |  +--rw protocol
  |     |  +--rw direction
  |     |  +--rw route-map?
  |     |  +--rw access-list?
  |     |  +--rw always?
  |     |  +--rw metric?
  |     |  +--rw metric-type?
```

**Table of Properties**

| **Name**          | **Required** | **Type/Range**          | **Description**                                                                                                                                      |
| ----------------- | ------------ | ----------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
| ospfv2            | M            |                         | Path-only node, has no configurable value.<br />Top-level configuration for the OSPFv2 router.                                                       |
| vrf-name          | M            | "default"<br />vrf name | (sub-property of ospfv2)<br />Name of VRF instance.                                                                                                  |
| refresh-interval  | O            | 10..1800                | (sub-property of ospfv2)<br />The maximum time between distinct originations of any particular LSA, value in units seconds.<br />Default value: 1800 |
| lsa-min-arrival   | O            | 0..600000               | (sub-property of ospfv2)<br />Minimum delay in receiving new version of an LSA.<br />Default value: 1000                                             |
| lsa-all           | O            | 0..5000                 | (sub-property of ospfv2)<br />LSA delay between transmissions.<br />Default value: 5000                                                              |
| spf               | M            |                         | (sub-property of ospfv2)<br />Path-only node, has no configurable value.                                                                             |
| initial-delay     | M            | 0..600000               | (sub-property of spf)<br />Specifies the minimum amount of time to delay SPF calculation.                                                            |
| initial-holdtime  | M            | 0..600000               | (sub-property of spf)<br />Separated consecutive SPF calculations.                                                                                   |
| maximum-holdtime  | M            | 0..600000               | (sub-property of spf)<br />Maximum of holdtime.                                                                                                      |
| aggregation-timer | O            | 5..1800                 | (sub-property of ospfv2)<br />Summarisation starts only after this delay timer expiry.<br />Default value: 5                                         |

### <font color="#1d50a2">OSPFv2 PCE for VRF</font>

**Tree Diagrams**

```plaintext
  +--rw ospfv2
  |  +--rw ospfv2-instance* [vrf-name]
  |     +--rw vrf-name
  |     +--rw address?
  |     +--rw flag?
  |     +--rw domain-as?
  |     +--rw neighbor-as?
  |     +--rw pce-scope?
```

**Table of Properties**

| **Name**    | **Required** | **Type/Range**          | **Description**                                                                                |
| ----------- | ------------ | ----------------------- | ---------------------------------------------------------------------------------------------- |
| ospfv2      | M            |                         | Path-only node, has no configurable value.<br />Top-level configuration for the OSPFv2 router. |
| vrf-name    | M            | "default"<br />vrf name | (sub-property of ospfv2)<br />Name of VRF instance.                                            |
| address     | O            | A.B.C.D                 | (sub-property of ospfv2)<br />The PCE IP address.                                              |
| flag        | O            | 0..4294967295           | (sub-property of ospfv2)<br />Flag.                                                            |
| domain-as   | O            | 0..65535                | (sub-property of ospfv2)<br />Autonomous System (AS) numbers of controlled domains.            |
| neighbor-as | O            | 0..65535                | (sub-property of ospfv2)<br />neighbor ASs.                                                    |
| pce-scope   | O            | 0..4294967295           | (sub-property of ospfv2)<br />Pce scope.                                                       |

### <font color="#1d50a2">OSPFv2 interfaces</font>

**Tree Diagrams**

```plaintext
  +--rw ospfv2-interfaces
     +--rw ospfv2-interface* [name address]
        +--rw name
        +--rw address
        +--rw vrf-name?
        +--rw area-id?
        +--rw authentication-type?
        +--rw authentication-key?
        +--rw bfd-enable?
        +--rw metric?
        +--rw dead-interval?
        +--rw ttl?
        +--rw hello-multiplier?
        +--rw hello-interval?
        +--rw mtu-ignore?
        +--rw network-type?
        +--rw priority?
        +--rw retransmission-interval?
        +--rw transmit-delay?
        +--rw passive?
        +--rw bfd-profile?
        +--rw authentication* [key-id]
           +--rw key-id
           +--rw md5-key?
```

**Table of Properties**

| **Name**                | **Required** | **Type/Range**                                                                                                           | **Description**                                                                                                                                                             |
| ----------------------- | ------------ | ------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ospfv2-interfaces       | M            |                                                                                                                          | Path-only node, has no configurable value.                                                                                                                                  |
| name                    | M            | Ethernet name<br />Lag1..9999<br />Vlan1..4094<br />Ethernet sub-interface name<br />Link-aggregation sub-interface name | (sub-property of ospfv2-interfaces)<br />Name of interface.                                                                                                                 |
| address                 | M            | A.B.C.D                                                                                                                  | (sub-property of ospfv2-interfaces)<br />Restricted to just the IP address.You can set this value to 0.0.0.0 to enable OSPF for all addresses configured on this interface. |
| vrf-name                | O            | "default"<br />vrf name                                                                                                  | (sub-property of ospfv2-interfaces)<br />Name of VRF.                                                                                                                       |
| area-id                 | O            | A.B.C.D                                                                                                                  | (sub-property of ospfv2-interfaces)<br />Area ID for this network.                                                                                                          |
| authentication-type     | O            | "MD5HMAC"<br />"TEXT"<br />"NONE"                                                                                        | (sub-property of ospfv2-interfaces)<br />Authentication type.                                                                                                               |
| authentication-key      | O            | A string that represents a credential, such as a password or a key for OSPF/BGP sessions                                 | (sub-property of ospfv2-interfaces)<br />Simple text OSPF password.                                                                                                         |
| bfd-enable              | O            | "true"<br />"false"                                                                                                      | (sub-property of ospfv2-interfaces)<br />Enable bfd.                                                                                                                        |
| metric                  | O            | 1..65535                                                                                                                 | (sub-property of ospfv2-interfaces)<br />Cost value set to router-LSA's metric field                                                                                        |
| dead-interval           | O            | 1..65535                                                                                                                 | (sub-property of ospfv2-interfaces)<br />Interval time after which a neighbor is declared down.                                                                             |
| ttl                     | O            | 1..255                                                                                                                   | (sub-property of ospfv2-interfaces)<br />Time to live.                                                                                                                      |
| hello-multiplier        | O            | 1..10                                                                                                                    | (sub-property of ospfv2-interfaces)<br />Set number of seconds for RouterDeadInterval timer value.                                                                          |
| hello-interval          | O            | 1..65535                                                                                                                 | (sub-property of ospfv2-interfaces)<br />Set number of seconds for HelloInterval timer value.                                                                               |
| mtu-ignore              | O            | "true"<br />"false"                                                                                                      | (sub-property of ospfv2-interfaces)<br />Enable mtu ignore.                                                                                                                 |
| network-type            | O            | "broadcast"<br />"non-broadcast"<br />"point-to-multipoint"<br />"point-to-point"                                        | (sub-property of ospfv2-interfaces)<br />Set network type.                                                                                                                  |
| priority                | O            | 0..255                                                                                                                   | (sub-property of ospfv2-interfaces)<br />Set RouterPriority integer value.                                                                                                  |
| retransmission-interval | O            | 1..65535                                                                                                                 | (sub-property of ospfv2-interfaces)<br />Set number of seconds for RxmtInterval timer value.                                                                                |
| transmit-delay          | O            | 1..65535                                                                                                                 | (sub-property of ospfv2-interfaces)<br />Set number of seconds for InfTransDelay value.                                                                                     |
| passive                 | O            | "true"<br />"false"                                                                                                      | (sub-property of ospfv2-interfaces)<br />Do not speak OSPF on the interface.                                                                                                |
| bfd-profile             | O            | string                                                                                                                   | (sub-property of ospfv2-interfaces)<br />Specify a BFD profile.                                                                                                             |
| authentication          | M            |                                                                                                                          | (sub-property of ospfv2-interfaces)<br />Path-only node, has no configurable value.                                                                                         |
| key-id                  | M            | 0..255                                                                                                                   | (sub-property of authentication)<br />Key id                                                                                                                                |
| md5-key                 | O            | A string that represents a credential, such as a password or a key for OSPF/BGP sessions                                 | (sub-property of authentication)<br />The MD5 password.                                                                                                                     |

### <font color="#1d50a2">Show ip ospf neighbor</font>

**Tree Diagrams**

```plaintext
    +---x show-ip-ospf-neighbor
    |  +---w input
    |  |  +---w vrf?
    |  |  +---w (options)?
    |  |     +--:(all)
    |  |     |  +---w all?
    |  |     +--:(detail)
    |  |     |  +---w detail?
    |  |     +--:(neighbor-id)
    |  |     |  +---w neighbor-id?
    |  |     +--:(interface)
    |  |        +---w interface?
    |  +--ro output
    |     +--ro data?
```

**Table of Properties**

| **Name**              | **Required** | **Type/Range**                                                                                                           | **Description**                                                                                                                                   |
| --------------------- | ------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------- |
| show-ip-ospf-neighbor | M            |                                                                                                                          | Path-only node, has no configurable value.<br />Show ip ospf neighbor information.                                                                |
| vrf                   | O            | "default"<br />vrf name                                                                                                  | (sub-property of input)<br />Name of VRF instance.                                                                                                |
| all                   | O            | empty                                                                                                                    | (sub-property of input)<br />Mutually exclusive with:<br />- detail<br />- neighbor-id<br />- interface<br />Display all neighbors information.   |
| detail                | O            | empty                                                                                                                    | (sub-property of input)<br />Mutually exclusive with:<br />- all<br />- neighbor-id<br />- interface<br />Display more details.                   |
| neighbor-id           | O            | A.B.C.D                                                                                                                  | (sub-property of input)<br />Mutually exclusive with:<br />- all<br />- detail<br />- interface<br />Display information of specific neighbor-id. |
| interface             | O            | Ethernet name<br />Lag1..9999<br />Vlan1..4094<br />Ethernet sub-interface name<br />Link-aggregation sub-interface name | (sub-property of input)<br />Mutually exclusive with:<br />- all<br />- detail<br />- neighbor-id<br />Display information of specific interface. |
| data                  | RO           | \<anydata>                                                                                                               | (sub-property of output)                                                                                                                          |

### <font color="#1d50a2">Show ip ospf route</font>

**Tree Diagrams**

```plaintext
    +---x show-ip-ospf-route
    |  +--ro output
    |     +--ro data?
```

**Table of Properties**

| **Name**           | **Required** | **Type/Range** | **Description**                                                                 |
| ------------------ | ------------ | -------------- | ------------------------------------------------------------------------------- |
| show-ip-ospf-route | M            |                | Path-only node, has no configurable value.<br />Show ip ospf route information. |
| data               | RO           | \<anydata>     | (sub-property of output)                                                        |

### <font color="#1d50a2">Show ip ospf database</font>

**Tree Diagrams**

```plaintext
    +---x show-ip-ospf-database
    |  +--ro output
    |     +--ro data?
```

**Table of Properties**

| **Name**              | **Required** | **Type/Range** | **Description**                                                                    |
| --------------------- | ------------ | -------------- | ---------------------------------------------------------------------------------- |
| show-ip-ospf-database | M            |                | Path-only node, has no configurable value.<br />Show ip ospf database information. |
| data                  | RO           | \<anydata>     | (sub-property of output)                                                           |

### <font color="#1d50a2">Show ip ospf interface</font>

**Tree Diagrams**

```plaintext
    +---x show-ip-ospf-interface
    |  +---w input
    |  |  +---w (options)?
    |  |     +--:(traffic)
    |  |     |  +---w traffic?
    |  |     +--:(interface)
    |  |        +---w interface?
    |  +--ro output
    |     +--ro data?
```

**Table of Properties**

| **Name**               | **Required** | **Type/Range**                                                                                                           | **Description**                                                                                                      |
| ---------------------- | ------------ | ------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------- |
| show-ip-ospf-interface | M            |                                                                                                                          | Path-only node, has no configurable value.<br />Show ip ospf interface information.                                  |
| traffic                | O            | empty                                                                                                                    | (sub-property of input)<br />Mutually exclusive with:<br />- interface<br />Display interface counter information.   |
| interface              | O            | Ethernet name<br />Lag1..9999<br />Vlan1..4094<br />Ethernet sub-interface name<br />Link-aggregation sub-interface name | (sub-property of input)<br />Mutually exclusive with:<br />- traffic<br />Display information of specific interface. |
| data                   | RO           | \<anydata>                                                                                                               | (sub-property of output)                                                                                             |

### <font color="#1d50a2">Clear ip ospf</font>

**Tree Diagrams**

```plaintext
    +---x clear-ip-ospf
    |  +---w input
    |     +---w vrf?
    |     +---w interface?
    |     +---w neighbor?
    |     +---w process?
```

**Table of Properties**

| **Name**      | **Required** | **Type/Range**                                                                                                           | **Description**                                                             |
| ------------- | ------------ | ------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------- |
| clear-ip-ospf | M            |                                                                                                                          | Path-only node, has no configurable value.<br />Clear ospf data structures. |
| vrf           | O            | "default"<br />vrf name                                                                                                  | (sub-property of input)<br />Name of VRF instance.                          |
| interface     | O            | Ethernet name<br />Lag1..9999<br />Vlan1..4094<br />Ethernet sub-interface name<br />Link-aggregation sub-interface name | (sub-property of input)<br />Clear information of specific interface.       |
| neighbor      | O            | A.B.C.D                                                                                                                  | (sub-property of input)<br />Display information of specific neighbor-id.   |
| process       | O            | empty                                                                                                                    | (sub-property of input)<br />Reset OSPF Process                             |

### <font color="#1d50a2">Graceful restart prepare ip ospf</font>

**Tree Diagrams**

```plaintext
    +---x graceful-restart-prepare-ip-ospf
```

**Table of Properties**

| **Name**                         | **Required** | **Type/Range** | **Description**                                                                                     |
| -------------------------------- | ------------ | -------------- | --------------------------------------------------------------------------------------------------- |
| graceful-restart-prepare-ip-ospf | M            |                | Path-only node, has no configurable value.<br />Initiate a graceful restart for all OSPF instances. |

