Skip to content

Commit

Permalink
daemon: removed unused wrappers class, fixed formatting in proto file
Browse files Browse the repository at this point in the history
  • Loading branch information
bharnden committed Nov 14, 2023
1 parent 4ca11c9 commit 50298f0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
15 changes: 0 additions & 15 deletions daemon/core/api/grpc/wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,21 +147,6 @@ def to_proto(self) -> services_pb2.Service:
)


@dataclass
class ServiceConfig:
node_id: int
name: str
templates: dict[str, str]
config: dict[str, str]

@classmethod
def from_proto(cls, proto: services_pb2.ServiceConfig) -> "ServiceConfig":
return ServiceConfig(
templates=dict(proto.templates),
config=dict(proto.config),
)


@dataclass
class ServiceData:
templates: dict[str, str] = field(default_factory=dict)
Expand Down
2 changes: 1 addition & 1 deletion daemon/proto/core/api/grpc/core.proto
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ message Node {
int32 canvas = 14;
map<string, common.ConfigOption> wlan_config = 15;
map<string, common.ConfigOption> mobility_config = 16;
map<string, services.ServiceConfig> service_configs= 17;
map<string, services.ServiceConfig> service_configs = 17;
repeated emane.NodeEmaneConfig emane_configs = 18;
map<string, common.ConfigOption> wireless_config = 19;
string compose = 20;
Expand Down

0 comments on commit 50298f0

Please sign in to comment.