Configuring OSPFv3 on a Loopback Interface
Configuring OSPF Point-to-Point Network
Configuring OSPF Point-to-Point Network
POST http://<mgmt0_IP>/api/mo/sys.json
{
"topSystem": {
"children": [
{
"ospfv3Entity": {
"children": [
{
"ospfv3If": {
"attributes": {
"id": "lo123",
"nwT": "p2p"
}
}
}
]
}
},
{
"interfaceEntity": {
"children": [
{
"l3LbRtdIf": {
"attributes": {
"id": "lo123"
}
}
}
]
}
}
]
}
}
{
}
<System>
<ospfv3-items>
<if-items>
<If-list>
<id>lo123</id>
<nwT>p2p</nwT>
</If-list>
</if-items>
</ospfv3-items>
<intf-items>
<lb-items>
<LbRtdIf-list>
<id>lo123</id>
</LbRtdIf-list>
</lb-items>
</intf-items>
</System>
Note: This example was added in Release 9.3(5).
CLI Commands
The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.
interface loopback 123
ospfv3 network point-to-point
Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
MO | DN |
---|---|
topSystem | sys |
ospfv3Entity | sys/ospfv3 |
ospfv3If | sys/ospfv3/if-[lo123] |
interfaceEntity | sys/intf |
l3LbRtdIf | sys/intf/lb-[lo123] |
ospfv3If Properties
The following table contains information about the ospfv3If properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
---|---|---|---|
id | nw:IfId (base:IfIndex) | An identifier . | Must match first field in the output of `show intf brief`. Example: Eth1/1 or Vlan100 |
nwT | ospfv3:NwT (scalar:Enum8) | Network Type, can be Point-to-point or Broadcast | SELECTION: 0 - none 1 - p2p 2 - bcast DEFAULT: none |
l3LbRtdIf Properties
The following table contains information about the l3LbRtdIf properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
---|---|---|---|
id | nw:IfId (base:IfIndex) | An identifier . | Must match first field in the output of `show intf brief`. Example: Eth1/1 or Vlan100 |
Related Documentation
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/
For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:
Deleting OSPF Point-to-Point Network
Deleting OSPF Point-to-Point Network
POST http://<mgmt0_IP>/api/mo/sys.json
{
"topSystem": {
"children": [
{
"ospfv3Entity": {
"children": [
{
"ospfv3If": {
"attributes": {
"id": "lo123",
"nwT": "none"
}
}
}
]
}
},
{
"interfaceEntity": {
"children": [
{
"l3LbRtdIf": {
"attributes": {
"id": "lo123"
}
}
}
]
}
}
]
}
}
{
}
<System>
<ospfv3-items>
<if-items>
<If-list>
<id>lo123</id>
<nwT>none</nwT>
</If-list>
</if-items>
</ospfv3-items>
<intf-items>
<lb-items>
<LbRtdIf-list>
<id>lo123</id>
</LbRtdIf-list>
</lb-items>
</intf-items>
</System>
Note: This example was added in Release 9.3(5).
CLI Commands
The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.
interface loopback 123
no ospfv3 network point-to-point
Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
MO | DN |
---|---|
topSystem | sys |
ospfv3Entity | sys/ospfv3 |
ospfv3If | sys/ospfv3/if-[lo123] |
interfaceEntity | sys/intf |
l3LbRtdIf | sys/intf/lb-[lo123] |
ospfv3If Properties
The following table contains information about the ospfv3If properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
---|---|---|---|
id | nw:IfId (base:IfIndex) | An identifier . | Must match first field in the output of `show intf brief`. Example: Eth1/1 or Vlan100 |
nwT | ospfv3:NwT (scalar:Enum8) | Network Type, can be Point-to-point or Broadcast | SELECTION: 0 - none 1 - p2p 2 - bcast DEFAULT: none |
l3LbRtdIf Properties
The following table contains information about the l3LbRtdIf properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
---|---|---|---|
id | nw:IfId (base:IfIndex) | An identifier . | Must match first field in the output of `show intf brief`. Example: Eth1/1 or Vlan100 |
Related Documentation
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/
For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide: