We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 155dda2 commit 7fa2c49Copy full SHA for 7fa2c49
src/bgp/message/update_builder.rs
@@ -1248,6 +1248,16 @@ impl StandardCommunitiesList {
1248
// TODO fn add_community_from_iter()
1249
}
1250
1251
+impl From<Vec<StandardCommunity>> for StandardCommunitiesList {
1252
+ fn from(value: Vec<StandardCommunity>) -> Self {
1253
+ let mut std_l = Self::new();
1254
+ for c in value {
1255
+ std_l.add_community(c)
1256
+ }
1257
+ std_l
1258
1259
+}
1260
+
1261
//------------ Errors --------------------------------------------------------
1262
1263
#[derive(Debug)]
0 commit comments