Skip to content

Commit b3a27cd

Browse files
committed
Added Hash trait to BgpRibEntry objects
1 parent a877c33 commit b3a27cd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

bgpsim/src/bgp/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ impl<P: Prefix> Hash for BgpRoute<P> {
229229
}
230230

231231
/// Type of a BGP session
232-
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]
232+
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize, Hash)]
233233
pub enum BgpSessionType {
234234
/// iBGP session with a peer (or from a client with a Route Reflector)
235235
IBgpPeer,
@@ -312,7 +312,7 @@ impl<P: Prefix> BgpEvent<P> {
312312
}
313313

314314
/// BGP RIB Table entry
315-
#[derive(Debug, Clone, Eq, Serialize, Deserialize)]
315+
#[derive(Debug, Clone, Eq, Serialize, Deserialize, Hash)]
316316
#[serde(bound(deserialize = "P: for<'a> Deserialize<'a>"))]
317317
pub struct BgpRibEntry<P: Prefix> {
318318
/// the actual bgp route

0 commit comments

Comments
 (0)