This commit is contained in:
@ -449,7 +449,7 @@ impl Display for OpenMessage {
|
||||
}
|
||||
|
||||
/// UPDATE message and subtypes.
|
||||
#[derive(Debug, PartialEq)]
|
||||
#[derive(Debug, PartialEq, Default)]
|
||||
pub struct UpdateMessage {
|
||||
pub withdrawn_nlri: Vec<NLRI>,
|
||||
pub path_attributes: Vec<PathAttribute>,
|
||||
|
||||
@ -205,7 +205,7 @@ impl TryInto<IpAddr> for NLRI {
|
||||
}
|
||||
|
||||
impl TryFrom<&str> for NLRI {
|
||||
type Error = eyre::Report;
|
||||
type Error = eyre::ErrReport;
|
||||
fn try_from(value: &str) -> Result<Self, Self::Error> {
|
||||
let parts: Vec<&str> = value.split("/").collect();
|
||||
if parts.len() != 2 {
|
||||
|
||||
Reference in New Issue
Block a user