#
Open Shortest Path First (OSPF)
#
URL
frinx-openconfig-network-instance:network-instances/network-instance=default/protocols/protocol=frinx-openconfig-policy-types%3AOSPF,
#
OPENCONFIG YANG
{
"protocol": [
{
"identifier": "frinx-openconfig-policy-types:OSPF",
"name":
"config": {
"identifier": "frinx-openconfig-policy-types:OSPF",
"name":
},
"ospfv2": {
"global": {
"timers": {
"max-metric": { // non cisco devices
"config": {
"set": true,
"timeout": ,
"include": [
"frinx-openconfig-ospf-types":"MAX_METRIC_INCLUDE_STUB",
"frinx-openconfig-ospf-types":"MAX_METRIC_INCLUDE_TYPE2_EXTERNAL"
]
}
},
"frinx-cisco-ospf-extension:max-metric-timers" {
"max-metric-timer": [
{
"trigger": ,
"config": {
"trigger": , // frinx-openconfig-ospf-types:MAX_METRIC_ON_SYSTEM_BOOT or MAX_METRIC_ON_SWITCHOVER
"timeout": ,
"include": [
"frinx-openconfig-ospf-types":"MAX_METRIC_INCLUDE_STUB",
"frinx-openconfig-ospf-types":"MAX_METRIC_INCLUDE_TYPE2_EXTERNAL",
"frinx-cisco-ospf-extension":"MAX_METRIC_SUMMARY_LSA"
]
}
}
]
}
}
},
"areas": {
"area": [
{
"identifier":,
"config": {
"identifier":
},
"interfaces": {
"interface": [
{
"id": "",
"config": {
"id": "",
"network-type": "",
"frinx-ospf-extension:enabled": ,
"metric": ,
"passive": ,
"priority":
},
"mpls": {
"igp-ldp-sync": {
"config": {
"enabled":
}
}
},
"timers": {
"config": {
"retransmission-interval":
}
},
"frinx-bfd-extension:enable-bfd": {
"config": {
"enabled":
}
},
"frinx-bfd-extension:bfd": {
"config": {
"multiplier": ,
"min-interval": ,
"min-receive-interval":
}
}
"frinx-ospf-extension:authentication": {
"config": {
"type": "auth-type:md5",
"passwords": {
"password": [
{
"auth-id": ,
"config": {
"auth-id": ,
"auth-password":
}
}
]
}
}
}
}
]
}
}
]
}
}
}
]
}
#
OS Configuration Commands
include-stub is a conversion of MAX_METRIC_INCLUDE_STUB in the include list of the max-metric-timer
external-lsa is a conversion of MAX_METRIC_INCLUDE_TYPE2_EXTERNAL in the include list of the max-metric-timer
summary-lsa is a conversion of MAX_METRIC_SUMMARY_LSA in the include list of the max-metric-timer
#
Cisco IOS XR 5.3.4
#
CLI
router ospf max-metric router-lsa on-startup include-stub summary-lsa external-lsa max-metric router-lsa include-stub summary-lsa external-lsa area interface cost passive bfd fast-detectmpls ldp sync mpls ldp sync disabled
bfd fast-detect is a conversion of set true
bfd fast-detect disable is a conversion of set false
mpls ldp sync is a conversion of set true
mpls ldp sync disabled is a conversion of set false
passive enable is a conversion of set true
passive disabled is a conversion of set false
** value MAX_METRIC_ON_SYSTEM_BOOT is to be converted to on-startup
** value MAX_METRIC_ON_SWITCHOVER is to be converted to on-switchover
#
Unit
Link to github : xr-unit
#
Cisco IOS XR 6.6.2
#
CLI
router ospf area interface
#
Unit
Link to github : xr-unit
#
Junos 14.1X53-D40.8
#
CLI
set protocols ospf area interface interface-type set protocols ospf area interface metric set protocols ospf area interface priority delete protocols ospf area interface disable | set protocols ospf area interface disable set protocols ospf area interface authentication md5 key | delete protocols ospf area interface authentication set protocols ospf area interface bfd-liveness-detection minimum-interval set protocols ospf area interface bfd-liveness-detection minimum-receive-interval set protocols ospf area interface bfd-liveness-detection multiplier set protocols ospf area interface retransmit-interval
delete protocols ospf area interface disable is a conversion of set true
set protocols ospf area interface disable is a conversion of set false
#
Unit
Link to github : junos-unit
#
Junos 17.3R1.10
#
CLI
set protocols ospf overload timeout set protocols ospf area interface metric
#
Unit
Link to github : junos-unit