mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-16 22:46:10 +00:00
Merge pull request #7514 from donaldsharp/respect_e
bgpd: Respect `-e X` value for multipath
This commit is contained in:
commit
9d96143b50
@ -9079,10 +9079,10 @@ int bgp_global_afi_safis_afi_safi_ipv4_unicast_use_multiple_paths_ebgp_maximum_p
|
||||
switch (args->event) {
|
||||
case NB_EV_VALIDATE:
|
||||
maxpaths = yang_dnode_get_uint16(args->dnode, NULL);
|
||||
if (maxpaths > MULTIPATH_NUM) {
|
||||
if (maxpaths > multipath_num) {
|
||||
snprintf(args->errmsg, args->errmsg_len,
|
||||
"maxpaths %u is out of range %u", maxpaths,
|
||||
MULTIPATH_NUM);
|
||||
multipath_num);
|
||||
return NB_ERR_VALIDATION;
|
||||
}
|
||||
break;
|
||||
@ -9150,10 +9150,10 @@ int bgp_global_afi_safis_afi_safi_ipv4_unicast_use_multiple_paths_ibgp_maximum_p
|
||||
switch (args->event) {
|
||||
case NB_EV_VALIDATE:
|
||||
maxpaths = yang_dnode_get_uint16(args->dnode, NULL);
|
||||
if (maxpaths > MULTIPATH_NUM) {
|
||||
if (maxpaths > multipath_num) {
|
||||
snprintf(args->errmsg, args->errmsg_len,
|
||||
"maxpaths %u is out of range %u", maxpaths,
|
||||
MULTIPATH_NUM);
|
||||
multipath_num);
|
||||
return NB_ERR_VALIDATION;
|
||||
}
|
||||
break;
|
||||
@ -10997,10 +10997,10 @@ int bgp_global_afi_safis_afi_safi_ipv6_unicast_use_multiple_paths_ebgp_maximum_p
|
||||
switch (args->event) {
|
||||
case NB_EV_VALIDATE:
|
||||
maxpaths = yang_dnode_get_uint16(args->dnode, NULL);
|
||||
if (maxpaths > MULTIPATH_NUM) {
|
||||
if (maxpaths > multipath_num) {
|
||||
snprintf(args->errmsg, args->errmsg_len,
|
||||
"maxpaths %u is out of range %u", maxpaths,
|
||||
MULTIPATH_NUM);
|
||||
multipath_num);
|
||||
return NB_ERR_VALIDATION;
|
||||
}
|
||||
break;
|
||||
@ -11759,10 +11759,10 @@ int bgp_global_afi_safis_afi_safi_ipv4_labeled_unicast_use_multiple_paths_ebgp_m
|
||||
switch (args->event) {
|
||||
case NB_EV_VALIDATE:
|
||||
maxpaths = yang_dnode_get_uint16(args->dnode, NULL);
|
||||
if (maxpaths > MULTIPATH_NUM) {
|
||||
if (maxpaths > multipath_num) {
|
||||
snprintf(args->errmsg, args->errmsg_len,
|
||||
"maxpaths %u is out of range %u", maxpaths,
|
||||
MULTIPATH_NUM);
|
||||
multipath_num);
|
||||
return NB_ERR_VALIDATION;
|
||||
}
|
||||
break;
|
||||
@ -11997,10 +11997,10 @@ int bgp_global_afi_safis_afi_safi_ipv6_labeled_unicast_use_multiple_paths_ebgp_m
|
||||
switch (args->event) {
|
||||
case NB_EV_VALIDATE:
|
||||
maxpaths = yang_dnode_get_uint16(args->dnode, NULL);
|
||||
if (maxpaths > MULTIPATH_NUM) {
|
||||
if (maxpaths > multipath_num) {
|
||||
snprintf(args->errmsg, args->errmsg_len,
|
||||
"maxpaths %u is out of range %u", maxpaths,
|
||||
MULTIPATH_NUM);
|
||||
multipath_num);
|
||||
return NB_ERR_VALIDATION;
|
||||
}
|
||||
break;
|
||||
@ -12027,10 +12027,10 @@ int bgp_global_afi_safis_afi_safi_ipv6_labeled_unicast_use_multiple_paths_ibgp_m
|
||||
switch (args->event) {
|
||||
case NB_EV_VALIDATE:
|
||||
maxpaths = yang_dnode_get_uint16(args->dnode, NULL);
|
||||
if (maxpaths > MULTIPATH_NUM) {
|
||||
if (maxpaths > multipath_num) {
|
||||
snprintf(args->errmsg, args->errmsg_len,
|
||||
"maxpaths %u is out of range %u", maxpaths,
|
||||
MULTIPATH_NUM);
|
||||
multipath_num);
|
||||
return NB_ERR_VALIDATION;
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user