mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 03:27:25 +00:00
yang: fix BGP multicast prefix type
Fix many of the commands in the `address-family ipv4 multicast` to use the proper type to avoid wrong YANG model validation failures. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
This commit is contained in:
parent
e51da3f817
commit
684a5c8a6b
@ -11,10 +11,6 @@ module frr-bgp {
|
|||||||
prefix inet;
|
prefix inet;
|
||||||
}
|
}
|
||||||
|
|
||||||
import ietf-routing-types {
|
|
||||||
prefix rt-types;
|
|
||||||
}
|
|
||||||
|
|
||||||
import frr-interface {
|
import frr-interface {
|
||||||
prefix frr-interface;
|
prefix frr-interface;
|
||||||
}
|
}
|
||||||
@ -23,6 +19,10 @@ module frr-bgp {
|
|||||||
prefix frr-bt;
|
prefix frr-bt;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
import frr-route-types {
|
||||||
|
prefix frr-route-types;
|
||||||
|
}
|
||||||
|
|
||||||
include "frr-bgp-common";
|
include "frr-bgp-common";
|
||||||
|
|
||||||
include "frr-bgp-common-structure";
|
include "frr-bgp-common-structure";
|
||||||
@ -405,7 +405,7 @@ module frr-bgp {
|
|||||||
description
|
description
|
||||||
"A list of network routes.";
|
"A list of network routes.";
|
||||||
leaf prefix {
|
leaf prefix {
|
||||||
type rt-types:ipv4-multicast-group-address;
|
type frr-route-types:ipv4-multicast-group-prefix;
|
||||||
description
|
description
|
||||||
"IPv4 multicast destination prefix.";
|
"IPv4 multicast destination prefix.";
|
||||||
}
|
}
|
||||||
@ -425,7 +425,7 @@ module frr-bgp {
|
|||||||
description
|
description
|
||||||
"A list of aggregated routes.";
|
"A list of aggregated routes.";
|
||||||
leaf prefix {
|
leaf prefix {
|
||||||
type rt-types:ipv4-multicast-group-address;
|
type frr-route-types:ipv4-multicast-group-prefix;
|
||||||
description
|
description
|
||||||
"IPv4 multicast destination prefix.";
|
"IPv4 multicast destination prefix.";
|
||||||
}
|
}
|
||||||
@ -438,7 +438,7 @@ module frr-bgp {
|
|||||||
description
|
description
|
||||||
"A list of routes with a particular admin distance.";
|
"A list of routes with a particular admin distance.";
|
||||||
leaf prefix {
|
leaf prefix {
|
||||||
type rt-types:ipv4-multicast-group-address;
|
type frr-route-types:ipv4-multicast-group-prefix;
|
||||||
description
|
description
|
||||||
"IPv4 multicast destination prefix.";
|
"IPv4 multicast destination prefix.";
|
||||||
}
|
}
|
||||||
@ -459,7 +459,7 @@ module frr-bgp {
|
|||||||
description
|
description
|
||||||
"A list of network routes.";
|
"A list of network routes.";
|
||||||
leaf prefix {
|
leaf prefix {
|
||||||
type rt-types:ipv6-multicast-group-address;
|
type frr-route-types:ipv6-multicast-group-prefix;
|
||||||
description
|
description
|
||||||
"IPv6 multicast destination prefix.";
|
"IPv6 multicast destination prefix.";
|
||||||
}
|
}
|
||||||
@ -479,7 +479,7 @@ module frr-bgp {
|
|||||||
description
|
description
|
||||||
"A list of aggregated routes.";
|
"A list of aggregated routes.";
|
||||||
leaf prefix {
|
leaf prefix {
|
||||||
type rt-types:ipv6-multicast-group-address;
|
type frr-route-types:ipv6-multicast-group-prefix;
|
||||||
description
|
description
|
||||||
"IPv6 multicast destination prefix.";
|
"IPv6 multicast destination prefix.";
|
||||||
}
|
}
|
||||||
@ -492,7 +492,7 @@ module frr-bgp {
|
|||||||
description
|
description
|
||||||
"A list of routes with a particular admin distance.";
|
"A list of routes with a particular admin distance.";
|
||||||
leaf prefix {
|
leaf prefix {
|
||||||
type rt-types:ipv6-multicast-group-address;
|
type frr-route-types:ipv6-multicast-group-prefix;
|
||||||
description
|
description
|
||||||
"IPv6 multicast destination prefix.";
|
"IPv6 multicast destination prefix.";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user