You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/cli/options.rs
+2
Original file line number
Diff line number
Diff line change
@@ -1977,6 +1977,8 @@ impl Options {
1977
1977
let aspa = AspaDefinition::from_str(aspa_config_str)?;
1978
1978
if aspa.customer_used_as_provider(){
1979
1979
Err(Error::general("Customer AS may not be used as provider."))
1980
+
}elseif aspa.contains_duplicate_providers(){
1981
+
Err(Error::general("ASPA may not have duplicate providers."))
1980
1982
}elseif !aspa.providers_has_both_afis(){
1981
1983
Err(Error::general("Definition has providers for one address family only. Please include an explicit AS0 provider for the missing address family if this is intentional."))
Error::AspaCustomerAlreadyPresent(_ca, asn) => write!(f,"ASPA already exists for customer AS '{}'", asn),
465
466
Error::AspaProvidersEmpty(_ca, asn) => write!(f,"ASPA for customer AS '{}' requires at least one provider", asn),
466
467
Error::AspaCustomerAsProvider(_ca, asn) => write!(f,"ASPA for customer AS '{}' cannot have that AS as provider", asn),
468
+
Error::AspaProvidersDuplicates(_ca, asn) => write!(f,"ASPA for customer AS '{}' cannot have duplicate providers", asn),
467
469
Error::AspaCustomerUnknown(_ca, asn) => write!(f,"No current ASPA exists for customer AS '{}'", asn),
468
470
Error::AspaProvidersSingleAfi(_ca, asn) => write!(f,"ASPA for customer AS '{}' only has providers for one address family. Please include an explicit AS0 provider for the missing address family if this is intentional.", asn),
0 commit comments