forked from Mirror/frr
yang: Corrected Pyang errors or warnings
Corrected Pyang errors or warnings at frr-route-types.yang file Signed-off-by: y-bharath14 <y.bharath@samsung.com>
This commit is contained in:
parent
7e34722472
commit
a05799bd8b
|
@ -50,111 +50,144 @@ module frr-route-types {
|
||||||
type enumeration {
|
type enumeration {
|
||||||
enum kernel {
|
enum kernel {
|
||||||
value 1;
|
value 1;
|
||||||
|
description "Kernel route";
|
||||||
}
|
}
|
||||||
enum connected {
|
enum connected {
|
||||||
value 2;
|
value 2;
|
||||||
|
description "Connected route";
|
||||||
}
|
}
|
||||||
enum local {
|
enum local {
|
||||||
value 3;
|
value 3;
|
||||||
|
description "Local route";
|
||||||
}
|
}
|
||||||
enum static {
|
enum static {
|
||||||
value 4;
|
value 4;
|
||||||
|
description "Static route";
|
||||||
}
|
}
|
||||||
enum rip {
|
enum rip {
|
||||||
value 5;
|
value 5;
|
||||||
|
description "RIP route";
|
||||||
}
|
}
|
||||||
enum ospf {
|
enum ospf {
|
||||||
value 7;
|
value 7;
|
||||||
|
description "OSPF route";
|
||||||
}
|
}
|
||||||
enum isis {
|
enum isis {
|
||||||
value 9;
|
value 9;
|
||||||
|
description "ISIS route";
|
||||||
}
|
}
|
||||||
enum bgp {
|
enum bgp {
|
||||||
value 10;
|
value 10;
|
||||||
|
description "BGP route";
|
||||||
}
|
}
|
||||||
enum eigrp {
|
enum eigrp {
|
||||||
value 12;
|
value 12;
|
||||||
|
description "EIGRP route";
|
||||||
}
|
}
|
||||||
enum nhrp {
|
enum nhrp {
|
||||||
value 13;
|
value 13;
|
||||||
|
description "NHRP route";
|
||||||
}
|
}
|
||||||
enum table {
|
enum table {
|
||||||
value 16;
|
value 16;
|
||||||
|
description "Table route";
|
||||||
}
|
}
|
||||||
enum vnc {
|
enum vnc {
|
||||||
value 18;
|
value 18;
|
||||||
|
description "VNC route";
|
||||||
}
|
}
|
||||||
enum vnc-direct {
|
enum vnc-direct {
|
||||||
value 19;
|
value 19;
|
||||||
|
description "VNC Direct route";
|
||||||
}
|
}
|
||||||
enum babel {
|
enum babel {
|
||||||
value 23;
|
value 23;
|
||||||
|
description "Babel route";
|
||||||
}
|
}
|
||||||
enum sharp {
|
enum sharp {
|
||||||
value 24;
|
value 24;
|
||||||
|
description "SHARP route";
|
||||||
}
|
}
|
||||||
enum openfabric {
|
enum openfabric {
|
||||||
value 27;
|
value 27;
|
||||||
|
description "Openfabric route";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
description "Enumeration of supported IPv4 route types";
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef frr-route-types-v6 {
|
typedef frr-route-types-v6 {
|
||||||
type enumeration {
|
type enumeration {
|
||||||
enum kernel {
|
enum kernel {
|
||||||
value 1;
|
value 1;
|
||||||
|
description "Kernel route";
|
||||||
}
|
}
|
||||||
enum connected {
|
enum connected {
|
||||||
value 2;
|
value 2;
|
||||||
|
description "Connected route";
|
||||||
}
|
}
|
||||||
enum local {
|
enum local {
|
||||||
value 3;
|
value 3;
|
||||||
|
description "Local route";
|
||||||
}
|
}
|
||||||
enum static {
|
enum static {
|
||||||
value 4;
|
value 4;
|
||||||
|
description "Static route";
|
||||||
}
|
}
|
||||||
enum ripng {
|
enum ripng {
|
||||||
value 6;
|
value 6;
|
||||||
|
description "RIPng route";
|
||||||
}
|
}
|
||||||
enum ospf6 {
|
enum ospf6 {
|
||||||
value 8;
|
value 8;
|
||||||
|
description "OSPFv3 route";
|
||||||
}
|
}
|
||||||
enum isis {
|
enum isis {
|
||||||
value 9;
|
value 9;
|
||||||
|
description "ISIS route";
|
||||||
}
|
}
|
||||||
enum bgp {
|
enum bgp {
|
||||||
value 10;
|
value 10;
|
||||||
|
description "BGP route";
|
||||||
}
|
}
|
||||||
enum nhrp {
|
enum nhrp {
|
||||||
value 13;
|
value 13;
|
||||||
|
description "NHRP route";
|
||||||
}
|
}
|
||||||
enum table {
|
enum table {
|
||||||
value 16;
|
value 16;
|
||||||
|
description "Table route";
|
||||||
}
|
}
|
||||||
enum vnc {
|
enum vnc {
|
||||||
value 18;
|
value 18;
|
||||||
|
description "VNC route";
|
||||||
}
|
}
|
||||||
enum vnc-direct {
|
enum vnc-direct {
|
||||||
value 19;
|
value 19;
|
||||||
|
description "VNC Direct route";
|
||||||
}
|
}
|
||||||
enum babel {
|
enum babel {
|
||||||
value 23;
|
value 23;
|
||||||
|
description "Babel route";
|
||||||
}
|
}
|
||||||
enum sharp {
|
enum sharp {
|
||||||
value 24;
|
value 24;
|
||||||
|
description "SHARP route";
|
||||||
}
|
}
|
||||||
enum openfabric {
|
enum openfabric {
|
||||||
value 27;
|
value 27;
|
||||||
|
description "OpenFabric route";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
description "Enumeration of supported IPv6 route types";
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef frr-route-types {
|
typedef frr-route-types {
|
||||||
description "Route types as enumerated in `lib/route_types.txt`";
|
|
||||||
type union {
|
type union {
|
||||||
type frr-route-types-v4;
|
type frr-route-types-v4;
|
||||||
type frr-route-types-v6;
|
type frr-route-types-v6;
|
||||||
}
|
}
|
||||||
|
description "Route types as enumerated in `lib/route_types.txt`";
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef ipv4-multicast-group-prefix {
|
typedef ipv4-multicast-group-prefix {
|
||||||
|
@ -177,12 +210,12 @@ module frr-route-types {
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef ip-multicast-group-prefix {
|
typedef ip-multicast-group-prefix {
|
||||||
description "The IP-Multicast-Group-Address-Prefix type represents an IP multicast address
|
|
||||||
prefix and is IP version neutral. The format of the textual representations implies the IP
|
|
||||||
version. It includes a prefix-length, separated by a '/' sign.";
|
|
||||||
type union {
|
type union {
|
||||||
type ipv4-multicast-group-prefix;
|
type ipv4-multicast-group-prefix;
|
||||||
type ipv6-multicast-group-prefix;
|
type ipv6-multicast-group-prefix;
|
||||||
}
|
}
|
||||||
|
description "The IP-Multicast-Group-Address-Prefix type represents an IP multicast address
|
||||||
|
prefix and is IP version neutral. The format of the textual representations implies the IP
|
||||||
|
version. It includes a prefix-length, separated by a '/' sign.";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue