Ospfv3-Netconf
Ospfv3
Section titled “Ospfv3”Resources Summary
Section titled “Resources Summary”| YANG Path | get/get-config | edit-config | rpc |
|---|---|---|---|
| /ospfv3-interfaces/{name} | Y | merge, replace, create, delete | — |
| /ospfv3/{vrf-name} | Y | merge, replace, create, delete | — |
| /ospfv3/{vrf-name}/areas/{area-id} | Y | merge, replace, create, delete | — |
| /ospfv3/{vrf-name}/areas/{area-id}/area-ranges/{ip-prefix} | Y | merge, replace, create, delete | — |
| /ospfv3/{vrf-name}/distribute-route/{protocol} | Y | merge, replace, create, delete | — |
| /ospfv3/{vrf-name}/spf | Y | merge | — |
| /show-ipv6-ospf6-database | — | — | Y |
| /show-ipv6-ospf6-interface | — | — | Y |
| /show-ipv6-ospf6-neighbor | — | — | Y |
| /show-ipv6-ospf6-redistribute | — | — | Y |
| /show-ipv6-ospf6-route | — | — | Y |
Examples
Section titled “Examples”Get ospfv3 Configuration On Device
Section titled “Get ospfv3 Configuration On Device”Request example via rpc get-config
Section titled “Request example via rpc get-config”<filter type="subtree"> <top> <ospfv3> <ospfv3-instance> <vrf-name>default</vrf-name> </ospfv3-instance> </ospfv3> </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> <ospfv3 xmlns="http://asterfusion.com/ns/yang/asternos-ospfv3"> <ospfv3-instance> <vrf-name>default</vrf-name> <enable>true</enable> <router-id>10.250.0.181</router-id> <auto-cost-reference-bandwidth>50</auto-cost-reference-bandwidth> <areas> <area> <area-id>0.0.0.100</area-id> </area> <area> <area-id>0.0.0.30</area-id> <area-ranges> <area-range> <ip-prefix>2005::1/64</ip-prefix> <cost>30</cost> <advertise>true</advertise> </area-range> </area-ranges> </area> <area> <area-id>0.0.0.40</area-id> </area> <area> <area-id>0.0.0.70</area-id> </area> </areas> <spf> <initial-delay>15</initial-delay> <initial-holdtime>30</initial-holdtime> <maximum-holdtime>40</maximum-holdtime> </spf> <distribute-route> <protocol>connected</protocol> <route-map>test_route_map</route-map> </distribute-route> <distribute-route> <protocol>static</protocol> <route-map>test_route_map</route-map> </distribute-route> </ospfv3-instance> </ospfv3> </data>Create ospfv3 Global
Section titled “Create ospfv3 Global”<config><top> <ospfv3> <ospfv3-instance operation="create"> <vrf-name>Vrf1</vrf-name> <router-id>10.10.10.10</router-id> </ospfv3-instance> </ospfv3></top></config>Merge ospfv2 Global
Section titled “Merge ospfv2 Global”<config><top> <ospfv3> <ospfv3-instance operation="merge"> <vrf-name>Vrf1</vrf-name> <router-id>10.10.10.10</router-id> </ospfv3-instance> </ospfv3></top></config>Delete ospfv3 Global
Section titled “Delete ospfv3 Global”<config><top> <ospfv3> <ospfv3-instance operation="delete"> <vrf-name>Vrf1</vrf-name> </ospfv3-instance> </ospfv3></top></config>Create ospfv3 Distribute
Section titled “Create ospfv3 Distribute”<config><top> <ospfv3> <ospfv3-instance operation="create"> <vrf-name>Vrf1</vrf-name> <distribute-route> <protocol>bgp</protocol> <route-map>test_route_map</route-map> </distribute-route> </ospfv3-instance> </ospfv3></top></config>Merge ospfv3 Distribute
Section titled “Merge ospfv3 Distribute”<config><top> <ospfv3> <ospfv3-instance> <vrf-name>Vrf1</vrf-name> <distribute-route operation="merge"> <protocol>bgp</protocol> <route-map>test_route_map2</route-map> </distribute-route> </ospfv3-instance> </ospfv3></top></config>Delete ospfv3 Distribute
Section titled “Delete ospfv3 Distribute”<config><top> <ospfv3> <ospfv3-instance> <vrf-name>Vrf1</vrf-name> <distribute-route operation="delete"> <protocol>bgp</protocol> </distribute-route> </ospfv3-instance> </ospfv3></top></config>Create ospfv3 Area
Section titled “Create ospfv3 Area”<config><top> <ospfv3> <ospfv3-instance operation="create"> <vrf-name>Vrf1</vrf-name> <areas> <area> <area-id>0.0.0.10</area-id> </area> </areas> </ospfv3-instance> </ospfv3></top></config>Delete ospfv3 Area
Section titled “Delete ospfv3 Area”<config><top> <ospfv3> <ospfv3-instance operation="delete"> <vrf-name>Vrf1</vrf-name> <areas> <area> <area-id>0.0.0.10</area-id> </area> </areas> </ospfv3-instance> </ospfv3></top></config>Get ospfv3 Configuration On Interface
Section titled “Get ospfv3 Configuration On Interface”Request example via rpc get-config
Section titled “Request example via rpc get-config”<filter type="subtree"> <top> <ospfv3-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> <ospfv3-interfaces xmlns="http://asterfusion.com/ns/yang/asternos-ospfv3"> <ospfv3-interface> <name>Ethernet3</name> <vrf-name>default</vrf-name> <area-id>0.0.0.10</area-id> <metric>50</metric> <dead-interval>50</dead-interval> <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> </ospfv3-interface> </ospfv3-interfaces> </data>Create ospfv3 Interface
Section titled “Create ospfv3 Interface”<config><top> <ospfv3-interfaces operation="create"> <ospfv3-interface> <name>Ethernet1</name> <metric>50</metric> <dead-interval>50</dead-interval> <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> </ospfv3-interface> </ospfv3-interfaces></top></config>Merge ospfv3 Interface
Section titled “Merge ospfv3 Interface”<config><top> <ospfv3-interfaces operation="merge"> <ospfv3-interface> <name>Ethernet1</name> <metric>30</metric> <dead-interval>30</dead-interval> <hello-interval>30</hello-interval> <mtu-ignore>false</mtu-ignore> <network-type>broadcast</network-type> <priority>30</priority> <retransmission-interval>30</retransmission-interval> <transmit-delay>30</transmit-delay> </ospfv3-interface> </ospfv3-interfaces></top></config>Delete ospfv3 Interface
Section titled “Delete ospfv3 Interface”<config><top> <ospfv3-interfaces> <ospfv3-interface operation="delete"> <name>Ethernet3</name> </ospfv3-interface> </ospfv3-interfaces></top></config>Properties Descriptions
Section titled “Properties Descriptions”Ospfv3 Interfaces
Section titled “Ospfv3 Interfaces”Tree Diagram
module: asternos-ospfv3 +--rw ospfv3-interfaces +--rw ospfv3-interface* [name] +--rw name cmn:ospf-interface-name +--rw vrf-name? vrf:vrf-ref +--rw area-id? ospfv3-area-id +--rw metric? uint16 +--rw dead-interval? uint16 +--rw hello-interval? uint16 +--rw mtu-ignore? boolean +--rw network-type? cmn:network-types +--rw priority? uint8 +--rw retransmission-interval? uint16 +--rw transmit-delay? uint16Table of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| ospfv3-interfaces | M | Path-only node, has no configurable value. | |
| ospfv3-interface | M | Path-only node, has no configurable value. | |
| name | O | cmn:ospf-interface-name | Name of interface. |
| vrf-name | O | vrf:vrf-ref | Name of VRF. |
| area-id | O | The ipv4-address type represents an IPv4 address in dotted-quad notation. The IPv4 address may include a zone index, separated by a % sign. If a system uses zone names that are not represented in UTF-8, then an implementation needs to use some mechanism to transform the local name into UTF-8. The definition of such a mechanism is outside the scope of this document. The zone index is used to disambiguate identical address values. For link-local addresses, the zone index will typically be the interface index number or the name of an interface. If the zone index is not present, the default zone of the device will be used. The canonical format for the zone index is the numerical format integer | Area ID for this network. |
| 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-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. |
Top-level configuration for the OSPFv3 router
Section titled “Top-level configuration for the OSPFv3 router”Tree Diagram
module: asternos-ospfv3 +--rw ospfv3 +--rw ospfv3-instance* [vrf-name] +--rw vrf-name vrf:vrf-ref +--rw enable? boolean +--rw router-id? inet:ipv4-address +--rw auto-cost-reference-bandwidth? uint32 +--rw areas | +--rw area* [area-id] | +--rw area-id ospfv3-area-id | +--rw area-ranges | +--rw area-range* [ip-prefix] | +--rw ip-prefix ospfv3-range-address | +--rw cost? uint32 | +--rw advertise? boolean +--rw spf | +--rw initial-delay uint32 | +--rw initial-holdtime uint32 | +--rw maximum-holdtime uint32 +--rw distribute-route* [protocol] +--rw protocol route-types-v6 +--rw route-map? stringTable of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| ospfv3 | M | Path-only node, has no configurable value. Top-level configuration for the OSPFv3 router. | |
| ospfv3-instance | M | Path-only node, has no configurable value. | |
| vrf-name | O | vrf:vrf-ref | Name of the VRF instance. |
| enable | O | ”true" "false” | Enable OSPFv3 |
| router-id | O | inet:ipv4-address | Router-id for the OSPF process. |
| auto-cost-reference-bandwidth | O | 1..4294967 | The reference bandwidth in terms of Mbits per second. |
| 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 | The ipv4-address type represents an IPv4 address in dotted-quad notation. The IPv4 address may include a zone index, separated by a % sign. If a system uses zone names that are not represented in UTF-8, then an implementation needs to use some mechanism to transform the local name into UTF-8. The definition of such a mechanism is outside the scope of this document. The zone index is used to disambiguate identical address values. For link-local addresses, the zone index will typically be the interface index number or the name of an interface. If the zone index is not present, the default zone of the device will be used. The canonical format for the zone index is the numerical format integer | |
| area-ranges | M | Path-only node, has no configurable value. | |
| area-range | M | Path-only node, has no configurable value. | |
| ip-prefix | M | The ipv6-prefix type represents an IPv6 prefix. The prefix length is given by the number following the slash character and must be less than or equal to 128. A prefix length value of n corresponds to an IP address mask that has n contiguous 1-bits from the most significant bit (MSB) and all other bits set to 0. The canonical format of an IPv6 prefix has all bits of the IPv6 address set to zero that are not part of the IPv6 prefix. Furthermore, the IPv6 address is represented as defined in Section 4 of RFC 5952. The definition of ipv6-prefix does not require that bits, which are not part of the prefix, are set to zero. However, implementations have to return values in canonical format, which requires non-prefix bits to be set to zero. This means that 2001:db8::1/64 must be accepted as a valid value but it will be converted into the canonical format 2001:db8::/64. | Designated IPv6 range. |
| cost | O | 0..16777215 | Set an explicit metric. |
| advertise | O | ”true" "false” | Summarize intra area paths from specified area into one Type-3 summary-LSA. |
| spf | M | Path-only node, has no configurable value. | |
| initial-delay | M | 0..600000 | Specifies the minimum amount of time to delay SPF calculation. |
| initial-holdtime | M | 0..600000 | Separated consecutive SPF calculations. |
| maximum-holdtime | M | 0..600000 | Maximum of holdtime. |
| distribute-route | M | Path-only node, has no configurable value. | |
| protocol | O | ”kernel" "connected" "local" "static" "ripng" "isis" "bgp" "nhrp" "table" "table-direct" "vnc" "babel" "openfabric” | Protocol to import. |
| route-map | O | string | Route map reference. |
Tree Diagram
module: asternos-ospfv3 +--rw ospfv3Area Range
Section titled “Area Range”Tree Diagram
module: asternos-ospfv3 +--rw ospfv3Distribute Route
Section titled “Distribute Route”Tree Diagram
module: asternos-ospfv3 +--rw ospfv3Tree Diagram
module: asternos-ospfv3 +--rw ospfv3Show Ipv6 Ospf6 Database
Section titled “Show Ipv6 Ospf6 Database”Tree Diagram
module: asternos-ospfv3
rpcs: +---x show-ipv6-ospf6-database +--ro output +--ro data? <anydata>Table of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| show-ipv6-ospf6-database | O | ||
| data | O | Show ipv6 ospf6 database information. |
Show Ipv6 Ospf6 Interface
Section titled “Show Ipv6 Ospf6 Interface”Tree Diagram
module: asternos-ospfv3
rpcs: +---x show-ipv6-ospf6-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-ipv6-ospf6-interface | O | ||
| traffic | O | empty | Display interface counter information. |
| interface | O | cmn:ospf-interface-name | Display information of specific interface. |
| data | O | Show ipv6 ospf6 interface information. |
Show Ipv6 Ospf6 Neighbor
Section titled “Show Ipv6 Ospf6 Neighbor”Tree Diagram
module: asternos-ospfv3
rpcs: +---x show-ipv6-ospf6-neighbor +---w input | +---w vrf? vrf:vrf-ref | +---w (options)? | +--:(detail) | +---w detail? empty +--ro output +--ro data? <anydata>Table of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| show-ipv6-ospf6-neighbor | O | ||
| vrf | O | vrf:vrf-ref | Name of VRF instance. |
| detail | O | empty | Display more details. |
| data | O | Show ipv6 ospf6 neighbor information. |
Show Ipv6 Ospf6 Redistribute
Section titled “Show Ipv6 Ospf6 Redistribute”Tree Diagram
module: asternos-ospfv3
rpcs: +---x show-ipv6-ospf6-redistribute +--ro output +--ro data? <anydata>Table of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| show-ipv6-ospf6-redistribute | O | ||
| data | O | Show ipv6 ospf6 redistributing External information. |
Show Ipv6 Ospf6 Route
Section titled “Show Ipv6 Ospf6 Route”Tree Diagram
module: asternos-ospfv3
rpcs: +---x show-ipv6-ospf6-route +--ro output +--ro data? <anydata>Table of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| show-ipv6-ospf6-route | O | ||
| data | O | Show ipv6 route ospf6 information. |