Skip to content

Commit 4e04e87

Browse files
authored
[4/n] [lldpd] convert to API trait (#34)
Part of oxidecomputer/omicron#8922. Convert lldpd to using the new Dropshot API trait feature, for use with the OpenAPI manager in the future.
1 parent 98ffa3e commit 4e04e87

File tree

16 files changed

+773
-507
lines changed

16 files changed

+773
-507
lines changed

.git-blame-ignore-revs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Whitespace-only changes
2+
1683a53daab90cb35b990a0acd2cf51489055167

Cargo.lock

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

Cargo.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22

33
members = [
44
"adm",
5-
"lldpd-common",
5+
"lldpd-api",
66
"lldpd-client",
7+
"lldpd-common",
8+
"lldpd-types",
79
"lldpd",
810
"protocol",
911
"xtask",
@@ -14,8 +16,10 @@ resolver = "2"
1416
[workspace.dependencies]
1517

1618
# intra-package dependencies
19+
lldpd-api = { path = "lldpd-api" }
1720
lldpd-client = { path = "lldpd-client" }
1821
lldpd-common = { path = "lldpd-common" }
22+
lldpd-types = { path = "lldpd-types" }
1923
protocol = { path = "protocol" }
2024

2125
# oxide dependencies from github

lldpd-api/Cargo.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[package]
2+
name = "lldpd-api"
3+
version = "0.1.0"
4+
edition = "2021"
5+
license = "MPL-2.0"
6+
7+
[dependencies]
8+
dropshot.workspace = true
9+
lldpd-types.workspace = true
10+
protocol.workspace = true
11+
schemars.workspace = true
12+
serde.workspace = true

0 commit comments

Comments
 (0)