Skip to content

Commit

Permalink
getters for AsPathLimitInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
density215 committed Sep 16, 2024
1 parent 893a441 commit bae5b7f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/bgp/path_attributes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1893,6 +1893,14 @@ impl AsPathLimitInfo {
pub fn new(upper_bound: u8, attacher: Asn) -> AsPathLimitInfo {
AsPathLimitInfo { upper_bound, attacher }
}

pub fn upper_bound(&self) -> u8 {
self.upper_bound
}

pub fn attacher(&self) -> Asn {
self.attacher
}
}

impl Attribute for AsPathLimitInfo {
Expand Down

0 comments on commit bae5b7f

Please sign in to comment.