Skip to content
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ serde_json.workspace = true
serde_with.workspace = true
slog.workspace = true
slog-error-chain.workspace = true
static_assertions.workspace = true
strum.workspace = true
test-strategy = { workspace = true, optional = true }
thiserror.workspace = true
Expand Down
5 changes: 5 additions & 0 deletions common/src/address.rs
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,11 @@ pub const CP_SERVICES_RESERVED_ADDRESSES: u16 = 0xFFFF;
// to assume that addresses in this subnet are available.
pub const SLED_RESERVED_ADDRESSES: u16 = 32;

static_assertions::const_assert_eq!(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Document this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added this because I was concerned some places for the new field semantically wanted to use RSS_RESERVED_ADDRESSES and others were using SLED_RESERVED_ADDRESSES, and those mixed uses only worked if they both had the same value. With the switch to the newtype, I don't think that's true anymore (because it enforces a minimum, and if RSS_RESERVED_ADDRESSES went higher that would be fine), so I just took this back out.

RSS_RESERVED_ADDRESSES,
SLED_RESERVED_ADDRESSES
);

/// Wraps an [`Ipv6Net`] with a compile-time prefix length.
#[derive(
Debug,
Expand Down
4 changes: 4 additions & 0 deletions dev-tools/omdb/tests/successes.out
Original file line number Diff line number Diff line change
Expand Up @@ -1556,6 +1556,7 @@ parent: <none>
state::::::::::::: active
config generation: 2
subnet:::::::::::: ::/64
last allocated IP: ::20

host phase 2 contents:
------------------------
Expand Down Expand Up @@ -1598,6 +1599,7 @@ parent: <none>
state::::::::::::: active
config generation: 2
subnet:::::::::::: ::/64
last allocated IP: ::20

host phase 2 contents:
------------------------
Expand Down Expand Up @@ -1686,6 +1688,7 @@ parent: <none>
state::::::::::::: active
config generation: 2
subnet:::::::::::: ::/64
last allocated IP: ::20

host phase 2 contents:
------------------------
Expand Down Expand Up @@ -1728,6 +1731,7 @@ parent: <none>
state::::::::::::: active
config generation: 2
subnet:::::::::::: ::/64
last allocated IP: ::20

host phase 2 contents:
------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ parent: dbcbd3d6-41ff-48ae-ac0b-1becc9b2fd21
state::::::::::::: active
config generation: 1
subnet:::::::::::: fd00:1122:3344:104::/64
last allocated IP: fd00:1122:3344:104::20

host phase 2 contents:
------------------------
Expand Down Expand Up @@ -93,6 +94,7 @@ parent: dbcbd3d6-41ff-48ae-ac0b-1becc9b2fd21
state::::::::::::: active
config generation: 2
subnet:::::::::::: fd00:1122:3344:102::/64
last allocated IP: fd00:1122:3344:102::28

host phase 2 contents:
------------------------
Expand Down Expand Up @@ -161,6 +163,7 @@ parent: dbcbd3d6-41ff-48ae-ac0b-1becc9b2fd21
state::::::::::::: active
config generation: 2
subnet:::::::::::: fd00:1122:3344:101::/64
last allocated IP: fd00:1122:3344:101::27

host phase 2 contents:
------------------------
Expand Down Expand Up @@ -226,6 +229,7 @@ parent: dbcbd3d6-41ff-48ae-ac0b-1becc9b2fd21
state::::::::::::: active
config generation: 2
subnet:::::::::::: fd00:1122:3344:103::/64
last allocated IP: fd00:1122:3344:103::27

host phase 2 contents:
------------------------
Expand Down
7 changes: 7 additions & 0 deletions dev-tools/reconfigurator-cli/tests/output/cmds-example-stdout
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ parent: 02697f74-b14a-4418-90f0-c28b2a3a6aa9
state::::::::::::: active
config generation: 2
subnet:::::::::::: fd00:1122:3344:102::/64
last allocated IP: fd00:1122:3344:102::2f

host phase 2 contents:
------------------------
Expand Down Expand Up @@ -203,6 +204,7 @@ parent: 02697f74-b14a-4418-90f0-c28b2a3a6aa9
state::::::::::::: active
config generation: 2
subnet:::::::::::: fd00:1122:3344:103::/64
last allocated IP: fd00:1122:3344:103::2e

host phase 2 contents:
------------------------
Expand Down Expand Up @@ -317,6 +319,7 @@ parent: 02697f74-b14a-4418-90f0-c28b2a3a6aa9
state::::::::::::: active
config generation: 2
subnet:::::::::::: fd00:1122:3344:101::/64
last allocated IP: fd00:1122:3344:101::2e

host phase 2 contents:
------------------------
Expand Down Expand Up @@ -510,6 +513,7 @@ parent: 02697f74-b14a-4418-90f0-c28b2a3a6aa9
state::::::::::::: active
config generation: 2
subnet:::::::::::: fd00:1122:3344:101::/64
last allocated IP: fd00:1122:3344:101::2f

host phase 2 contents:
------------------------
Expand Down Expand Up @@ -1165,6 +1169,7 @@ parent: 02697f74-b14a-4418-90f0-c28b2a3a6aa9
state::::::::::::: active
config generation: 2
subnet:::::::::::: fd00:1122:3344:102::/64
last allocated IP: fd00:1122:3344:102::24

host phase 2 contents:
------------------------
Expand Down Expand Up @@ -1220,6 +1225,7 @@ parent: 02697f74-b14a-4418-90f0-c28b2a3a6aa9
state::::::::::::: active
config generation: 2
subnet:::::::::::: fd00:1122:3344:103::/64
last allocated IP: fd00:1122:3344:103::24

host phase 2 contents:
------------------------
Expand Down Expand Up @@ -1275,6 +1281,7 @@ parent: 02697f74-b14a-4418-90f0-c28b2a3a6aa9
state::::::::::::: active
config generation: 2
subnet:::::::::::: fd00:1122:3344:101::/64
last allocated IP: fd00:1122:3344:101::2e

host phase 2 contents:
------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ parent: 06c88262-f435-410e-ba98-101bed41ec27
state::::::::::::: active
config generation: 2
subnet:::::::::::: fd00:1122:3344:103::/64
last allocated IP: fd00:1122:3344:103::2f

host phase 2 contents:
------------------------
Expand Down Expand Up @@ -132,6 +133,7 @@ parent: 06c88262-f435-410e-ba98-101bed41ec27
state::::::::::::: active
config generation: 2
subnet:::::::::::: fd00:1122:3344:102::/64
last allocated IP: fd00:1122:3344:102::2e

host phase 2 contents:
------------------------
Expand Down Expand Up @@ -246,6 +248,7 @@ parent: 06c88262-f435-410e-ba98-101bed41ec27
state::::::::::::: active
config generation: 2
subnet:::::::::::: fd00:1122:3344:101::/64
last allocated IP: fd00:1122:3344:101::2e

host phase 2 contents:
------------------------
Expand Down Expand Up @@ -562,6 +565,7 @@ parent: 3f00b694-1b16-4aaa-8f78-e6b3a527b434
state::::::::::::: active
config generation: 3
subnet:::::::::::: fd00:1122:3344:103::/64
last allocated IP: fd00:1122:3344:103::2f

host phase 2 contents:
------------------------
Expand Down Expand Up @@ -679,6 +683,7 @@ parent: 3f00b694-1b16-4aaa-8f78-e6b3a527b434
state::::::::::::: active
config generation: 2
subnet:::::::::::: fd00:1122:3344:102::/64
last allocated IP: fd00:1122:3344:102::2e

host phase 2 contents:
------------------------
Expand Down Expand Up @@ -793,6 +798,7 @@ parent: 3f00b694-1b16-4aaa-8f78-e6b3a527b434
state::::::::::::: active
config generation: 2
subnet:::::::::::: fd00:1122:3344:101::/64
last allocated IP: fd00:1122:3344:101::2e

host phase 2 contents:
------------------------
Expand Down Expand Up @@ -1134,6 +1140,7 @@ parent: 366b0b68-d80e-4bc1-abd3-dc69837847e0
state::::::::::::: active
config generation: 4
subnet:::::::::::: fd00:1122:3344:103::/64
last allocated IP: fd00:1122:3344:103::30

host phase 2 contents:
------------------------
Expand Down Expand Up @@ -1254,6 +1261,7 @@ parent: 366b0b68-d80e-4bc1-abd3-dc69837847e0
state::::::::::::: active
config generation: 2
subnet:::::::::::: fd00:1122:3344:102::/64
last allocated IP: fd00:1122:3344:102::2e

host phase 2 contents:
------------------------
Expand Down Expand Up @@ -1368,6 +1376,7 @@ parent: 366b0b68-d80e-4bc1-abd3-dc69837847e0
state::::::::::::: active
config generation: 2
subnet:::::::::::: fd00:1122:3344:101::/64
last allocated IP: fd00:1122:3344:101::2e

host phase 2 contents:
------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ parent: 184f10b3-61cb-41ef-9b93-3489b2bac559
state::::::::::::: active
config generation: 2
subnet:::::::::::: fd00:1122:3344:102::/64
last allocated IP: fd00:1122:3344:102::2f

host phase 2 contents:
------------------------
Expand Down Expand Up @@ -130,6 +131,7 @@ parent: 184f10b3-61cb-41ef-9b93-3489b2bac559
state::::::::::::: active
config generation: 2
subnet:::::::::::: fd00:1122:3344:101::/64
last allocated IP: fd00:1122:3344:101::2e

host phase 2 contents:
------------------------
Expand Down Expand Up @@ -244,6 +246,7 @@ parent: 184f10b3-61cb-41ef-9b93-3489b2bac559
state::::::::::::: active
config generation: 2
subnet:::::::::::: fd00:1122:3344:103::/64
last allocated IP: fd00:1122:3344:103::2e

host phase 2 contents:
------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ parent: 184f10b3-61cb-41ef-9b93-3489b2bac559
state::::::::::::: active
config generation: 2
subnet:::::::::::: fd00:1122:3344:102::/64
last allocated IP: fd00:1122:3344:102::28

host phase 2 contents:
------------------------
Expand Down Expand Up @@ -86,6 +87,7 @@ parent: 184f10b3-61cb-41ef-9b93-3489b2bac559
state::::::::::::: active
config generation: 2
subnet:::::::::::: fd00:1122:3344:101::/64
last allocated IP: fd00:1122:3344:101::27

host phase 2 contents:
------------------------
Expand Down Expand Up @@ -151,6 +153,7 @@ parent: 184f10b3-61cb-41ef-9b93-3489b2bac559
state::::::::::::: active
config generation: 2
subnet:::::::::::: fd00:1122:3344:103::/64
last allocated IP: fd00:1122:3344:103::27

host phase 2 contents:
------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,7 @@ parent: 8da82a8e-bf97-4fbd-8ddd-9f6462732cf1
state::::::::::::: active
config generation: 4
subnet:::::::::::: fd00:1122:3344:101::/64
last allocated IP: fd00:1122:3344:101::35

host phase 2 contents:
------------------------------
Expand Down Expand Up @@ -863,6 +864,7 @@ parent: af934083-59b5-4bf6-8966-6fb5292c29e1
state::::::::::::: active
config generation: 6
subnet:::::::::::: fd00:1122:3344:101::/64
last allocated IP: fd00:1122:3344:101::35

host phase 2 contents:
------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1225,6 +1225,7 @@ parent: c1a0d242-9160-40f4-96ae-61f8f40a0b1b
state::::::::::::: active
config generation: 5
subnet:::::::::::: fd00:1122:3344:102::/64
last allocated IP: fd00:1122:3344:102::26

host phase 2 contents:
------------------------
Expand Down Expand Up @@ -1279,6 +1280,7 @@ parent: c1a0d242-9160-40f4-96ae-61f8f40a0b1b
state::::::::::::: active
config generation: 7
subnet:::::::::::: fd00:1122:3344:101::/64
last allocated IP: fd00:1122:3344:101::25

host phase 2 contents:
------------------------
Expand Down Expand Up @@ -1330,6 +1332,7 @@ parent: c1a0d242-9160-40f4-96ae-61f8f40a0b1b
state::::::::::::: active
config generation: 5
subnet:::::::::::: fd00:1122:3344:103::/64
last allocated IP: fd00:1122:3344:103::25

host phase 2 contents:
------------------------
Expand Down Expand Up @@ -1565,6 +1568,7 @@ parent: afb09faf-a586-4483-9289-04d4f1d8ba23
state::::::::::::: active
config generation: 5
subnet:::::::::::: fd00:1122:3344:102::/64
last allocated IP: fd00:1122:3344:102::26

host phase 2 contents:
------------------------
Expand Down Expand Up @@ -1619,6 +1623,7 @@ parent: afb09faf-a586-4483-9289-04d4f1d8ba23
state::::::::::::: active
config generation: 7
subnet:::::::::::: fd00:1122:3344:101::/64
last allocated IP: fd00:1122:3344:101::25

host phase 2 contents:
------------------------
Expand Down Expand Up @@ -1670,6 +1675,7 @@ parent: afb09faf-a586-4483-9289-04d4f1d8ba23
state::::::::::::: active
config generation: 6
subnet:::::::::::: fd00:1122:3344:103::/64
last allocated IP: fd00:1122:3344:103::25

host phase 2 contents:
------------------------
Expand Down Expand Up @@ -1940,6 +1946,7 @@ parent: 8f2d1f39-7c88-4701-aa43-56bf281b28c1
state::::::::::::: active
config generation: 6
subnet:::::::::::: fd00:1122:3344:102::/64
last allocated IP: fd00:1122:3344:102::26

host phase 2 contents:
------------------------
Expand Down Expand Up @@ -1994,6 +2001,7 @@ parent: 8f2d1f39-7c88-4701-aa43-56bf281b28c1
state::::::::::::: active
config generation: 7
subnet:::::::::::: fd00:1122:3344:101::/64
last allocated IP: fd00:1122:3344:101::25

host phase 2 contents:
------------------------
Expand Down Expand Up @@ -2045,6 +2053,7 @@ parent: 8f2d1f39-7c88-4701-aa43-56bf281b28c1
state::::::::::::: active
config generation: 6
subnet:::::::::::: fd00:1122:3344:103::/64
last allocated IP: fd00:1122:3344:103::25

host phase 2 contents:
------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1077,6 +1077,7 @@ parent: 8da82a8e-bf97-4fbd-8ddd-9f6462732cf1
state::::::::::::: active
config generation: 3
subnet:::::::::::: fd00:1122:3344:102::/64
last allocated IP: fd00:1122:3344:102::28

host phase 2 contents:
------------------------------
Expand Down Expand Up @@ -1145,6 +1146,7 @@ parent: 8da82a8e-bf97-4fbd-8ddd-9f6462732cf1
state::::::::::::: active
config generation: 3
subnet:::::::::::: fd00:1122:3344:101::/64
last allocated IP: fd00:1122:3344:101::27

host phase 2 contents:
------------------------------
Expand Down Expand Up @@ -1210,6 +1212,7 @@ parent: 8da82a8e-bf97-4fbd-8ddd-9f6462732cf1
state::::::::::::: active
config generation: 3
subnet:::::::::::: fd00:1122:3344:103::/64
last allocated IP: fd00:1122:3344:103::27

host phase 2 contents:
------------------------------
Expand Down
Loading
Loading