Skip to content
Draft
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -827,7 +827,7 @@ script = ["cargo xtask check-isolated-package-builds"]
workspace = false
description = "Check cargo-deny against licenses we're using to validate that we're not introducing new licenses inadvertently"
category = "Licensing"
script = ["cargo deny check license"]
script = ["cargo deny check licenses"]

[tasks.check-bans]
workspace = false
Expand Down
2 changes: 1 addition & 1 deletion crates/dhcp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ crate-type = ["cdylib", "rlib"]
[dependencies]
chrono = { workspace = true }
derive_builder = { workspace = true }
dhcproto = { workspace = true }
eyre = { workspace = true }
hyper = { workspace = true, features = ["http2"] }
hyper-util = { workspace = true, features = ["tokio"] }
Expand All @@ -37,7 +38,6 @@ metrics-endpoint = { path = "../metrics-endpoint" }

[dev-dependencies]
eyre = { workspace = true }
dhcproto = { workspace = true }
serde_json = { workspace = true }
test-cdylib = { workspace = true }
tempfile = { workspace = true }
Expand Down
65 changes: 65 additions & 0 deletions crates/dhcp/examples/kea-dhcp6-carbide.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"Dhcp6": {
// Add names of your network interfaces to listen on.
"interfaces-config": {
"interfaces": [ "eth0" ]
},

"lease-database": {
"type": "memfile",
"name": "/var/lib/kea/kea-leases6.csv",
"lfc-interval": 3600
},

// IA_NA lifetimes are Kea-native, like kea-dhcp4.conf.
"preferred-lifetime": 3600,
"valid-lifetime": 7200,
"renew-timer": 1800,
"rebind-timer": 2880,
"decline-probation-period": 900,

"hooks-libraries": [
{
"library": "/usr/lib/kea/hooks/libdhcp.so",
"parameters": {
"carbide-api-url": "https://carbide-api:1079",
"carbide-metrics-endpoint": "[::]:1090",
"hook-dns-servers-ipv6": "2606:4700:4700::1111",
"hook-ntp-servers-ipv6": "",
"hook-provisioning-server-ipv6": "",
"hook-rapid-commit-v6": false
}
}
],

"subnet6": [
{
"subnet": "::/0",
"pools": [{
"pool": "2001:db8::1-2001:db8::ffff"
}]
}
],

"loggers": [
{
"name": "kea-dhcp6",
"output_options": [{"output": "stdout"}],
"severity": "DEBUG",
"debuglevel": 10
},
{
"name": "kea-dhcp6.carbide-rust",
"output_options": [{"output": "stdout"}],
"severity": "INFO",
"debuglevel": 10
},
{
"name": "kea-dhcp6.carbide-callouts",
"output_options": [{"output": "stdout"}],
"severity": "INFO",
"debuglevel": 10
}
]
}
}
Loading