Ospfv2-Netconf
此内容尚不支持你的语言。
Ospfv2
Section titled “Ospfv2”Resources Summary
Section titled “Resources Summary”| YANG Path | get/get-config | edit-config | rpc |
|---|---|---|---|
| /clear-ip-ospf | — | — | Y |
| /graceful-restart-prepare-ip-ospf | — | — | Y |
| /ospfv2-interfaces/{name}/{address} | Y | merge, replace, create, delete | — |
| /ospfv2-interfaces/{name}/{address}/authentication/{key-id} | Y | replace, create, delete | — |
| /ospfv2/{vrf-name}/{instance} | Y | merge, replace, create, delete | — |
| /ospfv2/{vrf-name}/{instance}/areas/{area-id} | Y | merge, replace, create, delete | — |
| /ospfv2/{vrf-name}/{instance}/areas/{area-id}/area-ranges/{ip-prefix} | Y | merge, replace, create, delete | — |
| /ospfv2/{vrf-name}/{instance}/distribute-route/{protocol}/{direction} | Y | merge, replace, create, delete | — |
| /ospfv2/{vrf-name}/{instance}/neighbor/{ip} | Y | merge, replace, create, delete | — |
| /ospfv2/{vrf-name}/{instance}/network/{prefix} | Y | merge, replace, create, delete | — |
| /show-ip-ospf-database | — | — | Y |
| /show-ip-ospf-interface | — | — | Y |
| /show-ip-ospf-neighbor | — | — | Y |
| /show-ip-ospf-route | — | — | Y |
Examples
Section titled “Examples”Get ospfv2 Configuration On Device
Section titled “Get ospfv2 Configuration On Device”Request example via rpc get-config
Section titled “Request example via rpc get-config”<filter type="subtree"> <top> <ospfv2> <ospfv2-instance> <vrf-name>default</vrf-name> <instance>0</instance> </ospfv2-instance> </ospfv2> </filter>Reply example via rpc get-config
Section titled “Reply example via rpc get-config”<data xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <top> <ospfv2 xmlns="http://asterfusion.com/ns/yang/asternos-ospfv2"> <ospfv2-instance> <vrf-name>default</vrf-name> <instance>0</instance> <enable>true</enable> <router-id>10.250.0.181</router-id> <default-metric>50</default-metric> <rfc1583compatibility>true</rfc1583compatibility> <areas> <area> <area-id>0.0.0.10</area-id> </area> <area> <area-id>0.0.0.100</area-id> <nssa-no-summary>true</nssa-no-summary> <stub>true</stub> <stub-no-summary>true</stub-no-summary> </area> <area> <area-id>0.0.0.20</area-id> </area> <area> <area-id>0.0.0.30</area-id> <area-ranges> <area-range> <ip-prefix>1.2.3.0/24</ip-prefix> <cost>30</cost> <substitute>1.2.4.4/24</substitute> <advertise>true</advertise> </area-range> </area-ranges> </area> <area> <area-id>0.0.0.40</area-id> <stub>true</stub> <stub-no-summary>true</stub-no-summary> </area> <area> <area-id>0.0.0.70</area-id> <nssa-no-summary>true</nssa-no-summary> </area> </areas> <network> <prefix>1.2.3.0/24</prefix> <area>0.0.0.10</area> </network> <distribute-route> <protocol>default-route</protocol> <direction>IMPORT</direction> <always>true</always> </distribute-route> <distribute-route> <protocol>connected</protocol> <direction>EXPORT</direction> <access-list>test_access_list</access-list> </distribute-route> <distribute-route> <protocol>connected</protocol> <direction>IMPORT</direction> <route-map>test_route_map</route-map> <metric>28</metric> <metric-type>TYPE_1</metric-type> </distribute-route> <distribute-route> <protocol>static</protocol> <direction>EXPORT</direction> <access-list>test_access_list</access-list> </distribute-route> </ospfv2-instance> </ospfv2> </data>Create ospfv2 Global
Section titled “Create ospfv2 Global”<config><top> <ospfv2> <ospfv2-instance operation="create"> <vrf-name>Vrf1</vrf-name> <instance>0</instance> <router-id>10.10.10.10</router-id> </ospfv2-instance> </ospfv2></top></config>Merge ospfv2 Global
Section titled “Merge ospfv2 Global”<config><top> <ospfv2> <ospfv2-instance operation="merge"> <vrf-name>Vrf1</vrf-name> <instance>0</instance> <router-id>100.100.100.100</router-id> </ospfv2-instance> </ospfv2></top></config>Delete ospfv2 Global
Section titled “Delete ospfv2 Global”<config><top> <ospfv2> <ospfv2-instance operation="delete"> <vrf-name>Vrf1</vrf-name> <instance>0</instance> </ospfv2-instance> </ospfv2></top></config>Create ospfv2 Distribute
Section titled “Create ospfv2 Distribute”<config><top> <ospfv2> <ospfv2-instance operation="create"> <vrf-name>Vrf1</vrf-name> <instance>0</instance> <distribute-route> <protocol>bgp</protocol> <direction>EXPORT</direction> <access-list>test_list</access-list> </distribute-route> </ospfv2-instance> </ospfv2></top></config>Merge ospfv2 Distribute
Section titled “Merge ospfv2 Distribute”<config><top> <ospfv2> <ospfv2-instance> <vrf-name>Vrf1</vrf-name> <instance>0</instance> <distribute-route operation="merge"> <protocol>bgp</protocol> <direction>EXPORT</direction> <access-list>change_list</access-list> </distribute-route> </ospfv2-instance> </ospfv2></top></config>Delete ospfv2 Distribute
Section titled “Delete ospfv2 Distribute”<config><top> <ospfv2> <ospfv2-instance> <vrf-name>Vrf1</vrf-name> <instance>0</instance> <distribute-route operation="delete"> <protocol>bgp</protocol> <direction>EXPORT</direction> </distribute-route> </ospfv2-instance> </ospfv2></top></config>Create ospfv2 Network
Section titled “Create ospfv2 Network”<config><top> <ospfv2> <ospfv2-instance> <vrf-name>Vrf1</vrf-name> <instance>0</instance> <network operation="create"> <prefix>1.2.3.4/24</prefix> <area>0.0.0.10</area> </network> </ospfv2-instance> </ospfv2></top></config>Merge ospfv2 Network
Section titled “Merge ospfv2 Network”<config><top> <ospfv2> <ospfv2-instance> <vrf-name>Vrf1</vrf-name> <instance>0</instance> <network operation="merge"> <prefix>1.2.3.4/24</prefix> <area>50</area> </network> </ospfv2-instance> </ospfv2></top></config>Delete ospfv2 Network
Section titled “Delete ospfv2 Network”<config><top> <ospfv2> <ospfv2-instance> <vrf-name>Vrf1</vrf-name> <instance>0</instance> <network operation="delete"> <prefix>1.2.3.4/24</prefix> </network> </ospfv2-instance> </ospfv2></top></config>Create ospfv2 Area
Section titled “Create ospfv2 Area”<config><top> <ospfv2> <ospfv2-instance operation="create"> <vrf-name>Vrf1</vrf-name> <instance>0</instance> <areas> <area> <area-id>0.0.0.10</area-id> <stub>true</stub> <stub-no-summary>true</stub-no-summary> </area> </areas> </ospfv2-instance> </ospfv2></top></config>Merge ospfv2 Area
Section titled “Merge ospfv2 Area”<config><top> <ospfv2> <ospfv2-instance operation="merge"> <vrf-name>Vrf1</vrf-name> <instance>0</instance> <areas> <area> <area-id>0.0.0.10</area-id> <stub-no-summary>true</stub-no-summary> </area> </areas> </ospfv2-instance> </ospfv2></top></config>Delete ospfv2 Area
Section titled “Delete ospfv2 Area”<config><top> <ospfv2> <ospfv2-instance operation="delete"> <vrf-name>Vrf1</vrf-name> <instance>0</instance> <areas> <area> <area-id>0.0.0.10</area-id> </area> </areas> </ospfv2-instance> </ospfv2></top></config>Get ospfv2 Configuration On Interface
Section titled “Get ospfv2 Configuration On Interface”Request example via rpc get-config
Section titled “Request example via rpc get-config”<filter type="subtree"> <top> <ospfv2-interfaces/> </filter>Reply example via rpc get-config
Section titled “Reply example via rpc get-config”<data xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <top> <ospfv2-interfaces xmlns="http://asterfusion.com/ns/yang/asternos-ospfv2"> <ospfv2-interface> <name>Ethernet3</name> <address>0.0.0.0</address> <vrf-name>default</vrf-name> <area-id>0.0.0.10</area-id> <authentication-type>TEXT</authentication-type> <bfd-enable>true</bfd-enable> <metric>50</metric> <dead-interval>50</dead-interval> <hello-multiplier>10</hello-multiplier> <hello-interval>50</hello-interval> <mtu-ignore>true</mtu-ignore> <network-type>broadcast</network-type> <priority>50</priority> <retransmission-interval>50</retransmission-interval> <transmit-delay>50</transmit-delay> <passive>true</passive> <bfd-profile>test</bfd-profile> </ospfv2-interface> </ospfv2-interfaces> </top></data>Create ospfv2 Interface
Section titled “Create ospfv2 Interface”<config><top> <ospfv2-interfaces operation="create"> <ospfv2-interface> <name>Ethernet1</name> <address>0.0.0.0</address> <area-id>0.0.0.10</area-id> <authentication-type>TEXT</authentication-type> <authentication-key>123</authentication-key> <bfd-enable>true</bfd-enable> <metric>50</metric> <dead-interval>50</dead-interval> <hello-multiplier>10</hello-multiplier> <hello-interval>50</hello-interval> <network-type>broadcast</network-type> <priority>50</priority> <retransmission-interval>50</retransmission-interval> <transmit-delay>50</transmit-delay> <passive>true</passive> <bfd-profile>test_file</bfd-profile> <authentication> <key-id>12</key-id> <md5-key>123</md5-key> </authentication> <authentication> <key-id>13</key-id> <md5-key>1234</md5-key> </authentication> </ospfv2-interface> </ospfv2-interfaces></top></config>Merge ospfv2 Interface
Section titled “Merge ospfv2 Interface”<config><top> <ospfv2-interfaces operation="merge"> <ospfv2-interface> <name>Ethernet3</name> <address>0.0.0.0</address> <area-id>0.0.0.20</area-id> <authentication-type>MD5HMAC</authentication-type> <authentication-key>12345</authentication-key> <bfd-enable>false</bfd-enable> <metric>100</metric> <dead-interval>100</dead-interval> <hello-multiplier>1</hello-multiplier> <hello-interval>100</hello-interval> <network-type>non-broadcast</network-type> <priority>100</priority> <retransmission-interval>100</retransmission-interval> <transmit-delay>100</transmit-delay> <passive>false</passive> <bfd-profile>test_file</bfd-profile> <authentication> <key-id>14</key-id> <md5-key>123456</md5-key> </authentication> </ospfv2-interface> </ospfv2-interfaces></top></config>Delete ospfv2 Interface
Section titled “Delete ospfv2 Interface”<config><top> <ospfv2-interfaces> <ospfv2-interface operation="delete"> <name>Ethernet3</name> <address>0.0.0.0</address> </ospfv2-interface> </ospfv2-interfaces></top></config>Show Ip Ospf Neighbor
Section titled “Show Ip Ospf Neighbor”Request example to get ospf neighbor via rpc
Section titled “Request example to get ospf neighbor via rpc”<show-ip-ospf-neighbor/>Reply example
Section titled “Reply example”<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:e190d690-8a6c-454a-a82b-198943a6f056"> <data> <neighbors> <neighbor200.1.1.1> <nbrState>Full/DR</nbrState> <nbrPriority>1</nbrPriority> <converged>Full</converged> <role>DR</role> <upTimeInMsec>164573</upTimeInMsec> <routerDeadIntervalTimerDueMsec>30502</routerDeadIntervalTimerDueMsec> <upTime>2m44s</upTime> <deadTime>30.502s</deadTime> <ifaceAddress>10.20.0.2</ifaceAddress> <ifaceName>Ethernet3:10.20.0.1</ifaceName> <linkStateRetransmissionListCounter>0</linkStateRetransmissionListCounter> <linkStateRequestListCounter>0</linkStateRequestListCounter> <databaseSummaryListCounter>0</databaseSummaryListCounter> </neighbor200.1.1.1> </neighbors> </data></rpc-reply>Show Ip Ospf Interface
Section titled “Show Ip Ospf Interface”Request example to get ospf Interface via rpc
Section titled “Request example to get ospf Interface via rpc”<show-ip-ospf-interface/>Reply example
Section titled “Reply example”<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:d500986b-0468-43f9-a209-8e968ea7da42"> <data> <interfaces> <Ethernet3> <ifUp>True</ifUp> <ifIndex>10</ifIndex> <mtuBytes>9100</mtuBytes> <bandwidthMbit>10</bandwidthMbit> <ifFlags><UP,BROADCAST,RUNNING,MULTICAST></ifFlags> <ospfEnabled>True</ospfEnabled> <interfaceIp> <ip_10_20_0_1> <ipAddress>10.20.0.1</ipAddress> <ipAddressPrefixlen>24</ipAddressPrefixlen> <ospfIfType>Broadcast</ospfIfType> <localIfUsed>10.20.0.255</localIfUsed> <area>0.0.0.1</area> <routerId>100.1.1.1</routerId> <networkType>BROADCAST</networkType> <cost>10000</cost> <transmitDelaySecs>1</transmitDelaySecs> <state>Backup</state> <priority>1</priority> <drId>200.1.1.1</drId> <drAddress>10.20.0.2</drAddress> <bdrId>100.1.1.1</bdrId> <bdrAddress>10.20.0.1</bdrAddress> <mcastMemberOspfAllRouters>True</mcastMemberOspfAllRouters> <mcastMemberOspfDesignatedRouters>True</mcastMemberOspfDesignatedRouters> <timerMsecs>10000</timerMsecs> <timerDeadSecs>40</timerDeadSecs> <timerWaitSecs>40</timerWaitSecs> <timerRetransmitSecs>5</timerRetransmitSecs> <timerHelloInMsecs>4765</timerHelloInMsecs> <nbrCount>1</nbrCount> <nbrAdjacentCount>1</nbrAdjacentCount> <grHelloDelaySecs>10</grHelloDelaySecs> <prefixSuppression>False</prefixSuppression> </ip_10_20_0_1> </interfaceIp> <ipAddress>10.20.0.1</ipAddress> <ipAddressPrefixlen>24</ipAddressPrefixlen> <ospfIfType>Broadcast</ospfIfType> <localIfUsed>10.20.0.255</localIfUsed> <area>0.0.0.1</area> <routerId>100.1.1.1</routerId> <networkType>BROADCAST</networkType> <cost>10000</cost> <transmitDelaySecs>1</transmitDelaySecs> <state>Backup</state> <priority>1</priority> <opaqueCapable>True</opaqueCapable> <drId>200.1.1.1</drId> <drAddress>10.20.0.2</drAddress> <bdrId>100.1.1.1</bdrId> <bdrAddress>10.20.0.1</bdrAddress> <mcastMemberOspfAllRouters>True</mcastMemberOspfAllRouters> <mcastMemberOspfDesignatedRouters>True</mcastMemberOspfDesignatedRouters> <timerMsecs>10000</timerMsecs> <timerDeadSecs>40</timerDeadSecs> <timerWaitSecs>40</timerWaitSecs> <timerRetransmitSecs>5</timerRetransmitSecs> <timerHelloInMsecs>4765</timerHelloInMsecs> <nbrCount>1</nbrCount> <nbrAdjacentCount>1</nbrAdjacentCount> <grHelloDelaySecs>10</grHelloDelaySecs> <prefixSuppression>False</prefixSuppression> </Ethernet3> </interfaces> </data></rpc-reply>Show Ip Ospf Database
Section titled “Show Ip Ospf Database”Request example to get ospf database via rpc
Section titled “Request example to get ospf database via rpc”<show-ip-ospf-database/>Reply example
Section titled “Reply example”<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:564312ed-e583-4930-a983-6213aa8ecc10"> <data> <routerId>100.1.1.1</routerId> <areas> <area-id0.0.0.1> <routerLinkStates> <lsId>100.1.1.1</lsId> <advertisedRouter>100.1.1.1</advertisedRouter> <lsaAge>164</lsaAge> <sequenceNumber>80000007</sequenceNumber> <checksum>205</checksum> <numOfRouterLinks>1</numOfRouterLinks> </routerLinkStates> <routerLinkStates> <lsId>200.1.1.1</lsId> <advertisedRouter>200.1.1.1</advertisedRouter> <lsaAge>169</lsaAge> <sequenceNumber>8000000b</sequenceNumber> <checksum>67d1</checksum> <numOfRouterLinks>1</numOfRouterLinks> </routerLinkStates> <routerLinkStatesCount>2</routerLinkStatesCount> <networkLinkStates> <lsId>10.20.0.2</lsId> <advertisedRouter>200.1.1.1</advertisedRouter> <lsaAge>170</lsaAge> <sequenceNumber>80000003</sequenceNumber> <checksum>73c5</checksum> </networkLinkStates> <networkLinkStatesCount>1</networkLinkStatesCount> </area-id0.0.0.1> </areas> <asExternalLinkStates> <lsId>100.1.1.1</lsId> <advertisedRouter>100.1.1.1</advertisedRouter> <lsaAge>169</lsaAge> <sequenceNumber>80000003</sequenceNumber> <checksum>d01d</checksum> <metricType>E2</metricType> <route>100.1.1.1/32</route> <tag>0</tag> </asExternalLinkStates> <asExternalLinkStates> <lsId>192.168.0.0</lsId> <advertisedRouter>100.1.1.1</advertisedRouter> <lsaAge>169</lsaAge> <sequenceNumber>80000003</sequenceNumber> <checksum>eec</checksum> <metricType>E2</metricType> <route>192.168.0.0/20</route> <tag>0</tag> </asExternalLinkStates> <asExternalLinkStates> <lsId>192.168.0.0</lsId> <advertisedRouter>200.1.1.1</advertisedRouter> <lsaAge>719</lsaAge> <sequenceNumber>80000002</sequenceNumber> <checksum>880f</checksum> <metricType>E2</metricType> <route>192.168.0.0/20</route> <tag>0</tag> </asExternalLinkStates> <asExternalLinkStates> <lsId>200.1.1.1</lsId> <advertisedRouter>200.1.1.1</advertisedRouter> <lsaAge>679</lsaAge> <sequenceNumber>80000002</sequenceNumber> <checksum>32f3</checksum> <metricType>E2</metricType> <route>200.1.1.1/32</route> <tag>0</tag> </asExternalLinkStates> <asExternalLinkStatesCount>4</asExternalLinkStatesCount> </data></rpc-reply>Show Ip Ospf route
Section titled “Show Ip Ospf route”Request example to get ospf route via rpc
Section titled “Request example to get ospf route via rpc”<show-ip-ospf-route/>Reply example
Section titled “Reply example”<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:5f970466-eb9b-4b46-a854-77971dcf461f"> <data> <routeType>N</routeType> <transit>True</transit> <cost>10000</cost> <area>0.0.0.1</area> <nexthops> <ip> </ip> <directlyAttachedTo>Ethernet3</directlyAttachedTo> </nexthops> <ip-prefix>10.20.0.0/24</ip-prefix> </data> <data> <routeType>R </routeType> <cost>10000</cost> <area>0.0.0.1</area> <routerType>asbr</routerType> <nexthops> <ip>10.20.0.2</ip> <via>Ethernet3</via> </nexthops> <ip-prefix>200.1.1.1</ip-prefix> </data> <data> <routeType>N E2</routeType> <cost>10000</cost> <type2cost>20</type2cost> <tag>0</tag> <nexthops> <ip>10.20.0.2</ip> <via>Ethernet3</via> <advertisedRouter>200.1.1.1</advertisedRouter> </nexthops> <ip-prefix>192.168.0.0/20</ip-prefix> </data> <data> <routeType>N E2</routeType> <cost>10000</cost> <type2cost>20</type2cost> <tag>0</tag> <nexthops> <ip>10.20.0.2</ip> <via>Ethernet3</via> <advertisedRouter>200.1.1.1</advertisedRouter> </nexthops> <ip-prefix>200.1.1.1/32</ip-prefix> </data></rpc-reply>Properties Descriptions
Section titled “Properties Descriptions”Ospfv2 Interfaces
Section titled “Ospfv2 Interfaces”Tree Diagram
module: asternos-ospfv2 +--rw ospfv2-interfaces +--rw ospfv2-interface* [name address] +--rw name cmn:ospf-interface-name +--rw address inet:ipv4-address-no-zone +--rw vrf-name? vrf:vrf-ref +--rw instance? uint16 +--rw area-id? ospf-area-id +--rw authentication-type? authentication-types +--rw authentication-key? cmn:credential-string +--rw bfd-enable? boolean +--rw metric? uint16 +--rw dead-interval? uint16 +--rw hello-multiplier? uint8 +--rw hello-interval? uint16 +--rw mtu-ignore? boolean +--rw network-type? cmn:network-types +--rw priority? uint8 +--rw retransmission-interval? uint16 +--rw transmit-delay? uint16 +--rw passive? boolean +--rw bfd-profile? string +--rw authentication* [key-id] | +--rw key-id uint8 | +--rw md5-key? cmn:credential-string +--rw mpls-ldp-sync? boolean +--rw mpls-ldp-sync-holddown? uint16Table of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| ospfv2-interfaces | M | Path-only node, has no configurable value. | |
| ospfv2-interface | M | Path-only node, has no configurable value. | |
| name | O | cmn:ospf-interface-name | Name of interface. |
| address | O | inet:ipv4-address-no-zone | Restricted to just the IP address. |
| vrf-name | O | vrf:vrf-ref | Name of VRF. |
| instance | O | 1..65535 | Specific OSPF instance. |
| area-id | O | A.B.C.D integer | Area ID for this network. |
| authentication-type | O | ”MD5HMAC" "TEXT" "NONE” | Authentication type. |
| authentication-key | O | cmn:credential-string | Simple text OSPF password. |
| bfd-enable | O | ”true" "false” | Enable bfd. |
| metric | O | 1..65535 | Cost value set to router-LSA’s metric field |
| dead-interval | O | 1..65535 | Interval time after which a neighbor is declared down. |
| hello-multiplier | O | 2..20 | Set number of seconds for RouterDeadInterval timer value. |
| hello-interval | O | 1..65535 | Set number of seconds for HelloInterval timer value. |
| mtu-ignore | O | ”true" "false” | Enable mtu ignore. |
| network-type | O | cmn:network-types | Set network type. |
| priority | O | 0..255 | Set RouterPriority integer value. |
| retransmission-interval | O | 1..65535 | Set number of seconds for RxmtInterval timer value. |
| transmit-delay | O | 1..65535 | Set number of seconds for InfTransDelay value. |
| passive | O | ”true" "false” | Do not speak OSPF on the interface. |
| bfd-profile | O | string | specify a BFD profile. |
| authentication | M | Path-only node, has no configurable value. | |
| key-id | O | 1..255 | Key id |
| md5-key | O | cmn:credential-string | The MD5 password. |
| mpls-ldp-sync | O | ”true" "false” | Enable MPLS LDP-Sync functionality on this circuit. Default value: True |
| mpls-ldp-sync-holddown | O | 0..10000 | Time to wait for LDP-Sync to occur before restoring interface metric. |
Authentication
Section titled “Authentication”Tree Diagram
module: asternos-ospfv2 +--rw ospfv2-interfacesTop-level configuration for the OSPFv2 router
Section titled “Top-level configuration for the OSPFv2 router”Tree Diagram
module: asternos-ospfv2 +--rw ospfv2 +--rw ospfv2-instance* [vrf-name instance] +--rw vrf-name vrf:vrf-ref +--rw instance uint16 +--rw enable? boolean +--rw router-id? yang:dotted-quad +--rw default-metric? uint32 +--rw rfc1583compatibility? boolean +--rw mpls-ldp-sync? boolean +--rw mpls-ldp-sync-holddown? uint16 +--rw areas | +--rw area* [area-id] | +--rw area-id ospf-area-id | +--rw nssa-no-summary? boolean | +--rw suppress-fa? boolean | +--rw nssa-translator-role? nssa-translator-roles | +--rw stub? boolean | +--rw stub-no-summary? boolean | +--rw area-ranges | +--rw area-range* [ip-prefix] | +--rw ip-prefix range-address | +--rw cost? uint32 | +--rw substitute? inet:ipv4-prefix | +--rw advertise? boolean +--rw neighbor* [ip] | +--rw ip inet:ipv4-address-no-zone | +--rw enable? boolean | +--rw priority? uint8 | +--rw poll-interval? uint16 +--rw network* [prefix] | +--rw prefix range-address | +--rw area? ospf-area-id +--rw distribute-route* [protocol direction] +--rw protocol route-types-v4 +--rw direction direction-type +--rw route-map? string +--rw access-list? string +--rw always? boolean +--rw metric? uint32 +--rw metric-type? metric-typeTable of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| ospfv2 | M | Path-only node, has no configurable value. Top-level configuration for the OSPFv2 router. | |
| ospfv2-instance | M | Path-only node, has no configurable value. | |
| vrf-name | O | vrf:vrf-ref | Name of VRF instance. |
| instance | O | 0..65535 | Specific OSPF instance. |
| enable | O | ”true" "false” | Enable OSPFv2 |
| router-id | O | yang:dotted-quad | Router-id for the OSPF process. |
| default-metric | O | 0..16777214 | Metric of redistributed routes. |
| rfc1583compatibility | O | ”true" "false” | Enable the RFC 1583 compatibility flag. |
| mpls-ldp-sync | O | ”true" "false” | Enable MPLS LDP-Sync functionality on this circuit. Default value: True |
| mpls-ldp-sync-holddown | O | 0..10000 | Time to wait for LDP-Sync to occur before restoring interface metric. |
| areas | M | Path-only node, has no configurable value. | |
| area | M | Path-only node, has no configurable value. List of area objects | |
| area-id | O | A.B.C.D integer | |
| nssa-no-summary | O | ”true" "false” | Do not inject inter-area routes into nssa. Default value: False |
| suppress-fa | O | ”true" "false” | Suppress Forwarding Address generation. Default value: False |
| nssa-translator-role | O | ”always" "candidate" "never” | Nssa area translator role. |
| stub | O | ”true" "false” | Config the area as stub area. |
| stub-no-summary | O | ”true" "false” | Do not inject inter-area routes into stub Default value: False |
| area-ranges | M | Path-only node, has no configurable value. | |
| area-range | M | Path-only node, has no configurable value. | |
| ip-prefix | M | A.B.C.D/M | Designated IP range. |
| cost | O | 0..16777215 | Set an explicit metric. |
| substitute | O | inet:ipv4-prefix | Substitute summarized prefix with another prefix. |
| advertise | O | ”true" "false” | Summarize intra area paths from specified area into one Type-3 summary-LSA. |
| neighbor | M | Path-only node, has no configurable value. Neighbor list. | |
| ip | O | inet:ipv4-address-no-zone | Neighbor IP address. |
| enable | O | ”true" "false” | Configures OSPF neighbors for NBMA and point-to-multipoint non-broadcast networks. |
| priority | O | 0..255 | Neighbor Priority. |
| poll-interval | O | 1..65535 | Dead Neighbor Polling interval. |
| network | M | Path-only node, has no configurable value. Enable routing on list of IP network. | |
| prefix | O | A.B.C.D/M | Prefix on which routing needs to be enabled. |
| area | O | A.B.C.D integer | Area ID for this network. |
| distribute-route | M | Path-only node, has no configurable value. | |
| protocol | O | ”kernel" "connected" "local" "static" "rip" "ospf" "isis" "bgp" "eigrp" "nhrp" "table" "vnc" "vnc-direct" "babel" "sharp" "openfabric" "default-route” | Protocol to import. |
| direction | O | ”IMPORT" "EXPORT” | Export or import router. |
| route-map | O | string | Route map reference. |
| access-list | O | string | Access-list filter name. |
| always | O | ”true" "false” | Always advertise default route. |
| metric | O | 0..16777214 | OSPF default metric. |
| metric-type | O | ”TYPE_1" "TYPE_2” | Metric type (1/2). |
Tree Diagram
module: asternos-ospfv2 +--rw ospfv2Area Range
Section titled “Area Range”Tree Diagram
module: asternos-ospfv2 +--rw ospfv2Distribute Route
Section titled “Distribute Route”Tree Diagram
module: asternos-ospfv2 +--rw ospfv2Neighbor
Section titled “Neighbor”Tree Diagram
module: asternos-ospfv2 +--rw ospfv2Network
Section titled “Network”Tree Diagram
module: asternos-ospfv2 +--rw ospfv2Clear Ip Ospf
Section titled “Clear Ip Ospf”Tree Diagram
module: asternos-ospfv2
rpcs: +---x clear-ip-ospf +---w input +---w vrf? vrf:vrf-ref +---w interface? cmn:ospf-interface-name +---w neighbor? inet:ipv4-address-no-zone +---w process? emptyTable of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| clear-ip-ospf | O | ||
| vrf | O | vrf:vrf-ref | Name of VRF instance. |
| interface | O | cmn:ospf-interface-name | Clear information of specific interface. |
| neighbor | O | inet:ipv4-address-no-zone | Display information of specific neighbor-id. |
| process | O | empty | Reset OSPF Process |
Graceful Restart Prepare Ip Ospf
Section titled “Graceful Restart Prepare Ip Ospf”Tree Diagram
module: asternos-ospfv2
rpcs: +---x graceful-restart-prepare-ip-ospfTable of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| graceful-restart-prepare-ip-ospf | O |
Show Ip Ospf Database
Section titled “Show Ip Ospf Database”Tree Diagram
module: asternos-ospfv2
rpcs: +---x show-ip-ospf-database +---w input | +---w instance? uint16 +--ro output +--ro data? <anydata>Table of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| show-ip-ospf-database | O | ||
| instance | O | 1..65535 | Specific OSPF instance. |
| data | O | Show ip ospf database information. |
Show Ip Ospf Interface
Section titled “Show Ip Ospf Interface”Tree Diagram
module: asternos-ospfv2
rpcs: +---x show-ip-ospf-interface +---w input | +---w (options)? | +--:(traffic) | | +---w traffic? empty | +--:(interface) | +---w interface? cmn:ospf-interface-name +--ro output +--ro data? <anydata>Table of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| show-ip-ospf-interface | O | ||
| traffic | O | empty | Display interface counter information. |
| interface | O | cmn:ospf-interface-name | Display information of specific interface. |
| data | O | Show ip ospf interface information. |
Show Ip Ospf Neighbor
Section titled “Show Ip Ospf Neighbor”Tree Diagram
module: asternos-ospfv2
rpcs: +---x show-ip-ospf-neighbor +---w input | +---w vrf? vrf:vrf-ref | +---w (options)? | +--:(all) | | +---w all? empty | +--:(detail) | | +---w detail? empty | +--:(neighbor-id) | | +---w neighbor-id? inet:ipv4-address-no-zone | +--:(interface) | +---w interface? cmn:ospf-interface-name +--ro output +--ro data? <anydata>Table of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| show-ip-ospf-neighbor | O | ||
| vrf | O | vrf:vrf-ref | Name of VRF instance. |
| all | O | empty | Display all neighbors information. |
| detail | O | empty | Display more details. |
| neighbor-id | O | inet:ipv4-address-no-zone | Display information of specific neighbor-id. |
| interface | O | cmn:ospf-interface-name | Display information of specific interface. |
| data | O | Show ip ospf neighbor information. |
Show Ip Ospf Route
Section titled “Show Ip Ospf Route”Tree Diagram
module: asternos-ospfv2
rpcs: +---x show-ip-ospf-route +--ro output +--ro data? <anydata>Table of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| show-ip-ospf-route | O | ||
| data | O | Show ip ospf route information. |