Skip to content

Commit

Permalink
[spr] initial version
Browse files Browse the repository at this point in the history
Created using spr 1.3.6-beta.1
  • Loading branch information
sunshowers committed Oct 14, 2024
1 parent a9ac2df commit f4acad0
Show file tree
Hide file tree
Showing 19 changed files with 207 additions and 157 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions dev-tools/reconfigurator-cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1392,15 +1392,15 @@ fn cmd_load_example(
sim.internal_dns.insert(
blueprint.internal_dns_version,
DnsConfigParams {
generation: blueprint.internal_dns_version.into(),
generation: blueprint.internal_dns_version,
time_created: Utc::now(),
zones: vec![internal_dns],
},
);
sim.external_dns.insert(
blueprint.external_dns_version,
DnsConfigParams {
generation: blueprint.external_dns_version.into(),
generation: blueprint.external_dns_version,
time_created: Utc::now(),
zones: vec![external_dns],
},
Expand Down
1 change: 1 addition & 0 deletions dns-server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ hickory-resolver.workspace = true
hickory-server.workspace = true
http.workspace = true
internal-dns-types.workspace = true
omicron-common.workspace = true
pretty-hex.workspace = true
schemars.workspace = true
serde.workspace = true
Expand Down
4 changes: 2 additions & 2 deletions dns-server/src/bin/dnsadm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ async fn main() -> Result<()> {
.collect();

let new_config = DnsConfigParams {
generation: old_config.generation + 1,
generation: old_config.generation.next(),
time_created: chrono::Utc::now(),
zones,
};
Expand Down Expand Up @@ -275,7 +275,7 @@ fn add_record(
our_kv.1.push(record);

Ok(DnsConfigParams {
generation: generation + 1,
generation: generation.next(),
time_created: chrono::Utc::now(),
zones: other_zones
.into_iter()
Expand Down
Loading

0 comments on commit f4acad0

Please sign in to comment.