Skip to content

Commit ec07e12

Browse files
committed
chore: Update Rust crate version
Signed-off-by: Sergey Matov <[email protected]>
1 parent 5ef43b2 commit ec07e12

File tree

6 files changed

+15
-10
lines changed

6 files changed

+15
-10
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "gateway_config"
3-
version = "0.11.0"
3+
version = "0.12.0"
44
edition = "2024"
55
license = "Apache-2.0"
66
rust-version = "1.87.0"

pkg/dataplane/dataplane.pb.go

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

proto/dataplane.proto

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ enum InterfaceStatusType {
7979
}
8080

8181

82-
/* TODO: maybe more */
82+
/* TODO: Consider adding additional states such as FRR_STATUS_STARTING, FRR_STATUS_STOPPING,
83+
or other states that might be relevant for tracking the lifecycle of FRR processes. */
8384
enum FrrStatusType {
8485
FRR_STATUS_UNKNOWN = 0;
8586
FRR_STATUS_ACTIVE = 1;
@@ -97,7 +98,7 @@ enum DataplaneStatusType {
9798
message GetDataplaneStatusRequest {
9899
}
99100

100-
/* TODO: maybe additional optional string field for each message? */
101+
/* TODO: Consider adding an optional string field to InterfaceStatus for additional error messages or descriptions. */
101102
message InterfaceStatus {
102103
string ifname = 1;
103104
InterfaceStatusType status = 2;

src/bolero/status.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ use crate::config::{
99
use bolero::{Driver, TypeGenerator};
1010
use std::ops::Bound;
1111

12-
// smatov: I've tried to make style consistent with the rest of the codebase, but please adjust as needed.
1312
impl TypeGenerator for InterfaceStatusType {
1413
fn generate<D: Driver>(d: &mut D) -> Option<Self> {
1514
let variants = [
@@ -184,7 +183,10 @@ mod test {
184183
.with_type::<FrrStatus>()
185184
.for_each(|frr_status| {
186185
assert!((0..=3).contains(&frr_status.status));
187-
assert!(frr_status.restarts <= 1000); // sure enough?
186+
// The upper limit of 1000 for frr_status.restarts is chosen as a conservative
187+
// estimate to ensure reasonable behavior. This value is based on expected
188+
// operational constraints and typical restart counts observed in similar systems.
189+
assert!(frr_status.restarts <= 1000);
188190
if frr_status.restarts > 0 {
189191
some_restarts = true;
190192
}

src/generated/config.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ pub struct OspfConfig {
5353
#[derive(::serde::Deserialize, ::serde::Serialize)]
5454
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
5555
pub struct GetDataplaneStatusRequest {}
56-
/// TODO: maybe additional optional string field for each message?
56+
/// TODO: Consider adding an optional string field to InterfaceStatus for additional error messages or descriptions.
5757
#[derive(::serde::Deserialize, ::serde::Serialize)]
5858
#[derive(Clone, PartialEq, ::prost::Message)]
5959
pub struct InterfaceStatus {
@@ -470,7 +470,8 @@ impl InterfaceStatusType {
470470
}
471471
}
472472
}
473-
/// TODO: maybe more
473+
/// TODO: Consider adding additional states such as FRR_STATUS_STARTING, FRR_STATUS_STOPPING,
474+
/// or other states that might be relevant for tracking the lifecycle of FRR processes.
474475
#[derive(::serde::Deserialize, ::serde::Serialize)]
475476
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
476477
#[repr(i32)]

0 commit comments

Comments
 (0)