-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'denopink/feat/optimize-qos-trim-v2' of https://github.c…
…om/xmidt-org/xmidt-agent into denopink/feat/optimize-qos-trim-v2
- Loading branch information
Showing
23 changed files
with
358 additions
and
172 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# SPDX-FileCopyrightText: 2024 Comcast Cable Communications Management, LLC | ||
# SPDX-License-Identifier: Apache-2.0 | ||
--- | ||
name: 'Automatically relase patch versions.' | ||
|
||
on: | ||
schedule: # Run every day at 12:00 UTC | ||
- cron: '0 12 * * *' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
release: | ||
uses: xmidt-org/shared-go/.github/workflows/auto-releaser.yml@12a58ef01ff3da83567e930742524d5a215b90a2 # v4.4.17 | ||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
--- | ||
project_name: xmidt-agent | ||
|
||
version: 2 | ||
|
||
changelog: | ||
use: github | ||
|
@@ -71,6 +72,63 @@ archives: | |
format: zip | ||
name_template: '{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}' | ||
|
||
nfpms: | ||
- | ||
id: rdk | ||
file_name_template: '{{ .PackageName }}_{{ .Version }}_rdk_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}' | ||
vendor: xmidt-org | ||
homepage: https://github.com/xmidt-org/xmidt-agent | ||
license: Apache-2.0 | ||
maintainer: [email protected] | ||
description: The client agent for the Xmidt service. | ||
|
||
formats: | ||
- ipk | ||
|
||
dependencies: | ||
- systemd | ||
|
||
contents: | ||
# systemd service file | ||
- src: .release/ipk/xmidt-agent.service | ||
dst: /lib/systemd/system/xmidt-agent.service | ||
|
||
# base configuration file | ||
- src: .release/ipk/config.yml | ||
dst: /etc/xmidt-agent/01-config.yml | ||
|
||
scripts: | ||
preinstall: .release/ipk/preinstall.sh | ||
postinstall: .release/ipk/postinstall.sh | ||
|
||
ipk: | ||
fields: | ||
Bugs: https://github.com/xmidt-org/xmidt-agent/issues | ||
|
||
- | ||
id: openwrt | ||
file_name_template: '{{ .PackageName }}_{{ .Version }}_openwrt_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}' | ||
vendor: xmidt-org | ||
homepage: https://github.com/xmidt-org/xmidt-agent | ||
license: Apache-2.0 | ||
maintainer: [email protected] | ||
description: The client agent for the Xmidt service. | ||
|
||
formats: | ||
- ipk | ||
|
||
dependencies: | ||
- systemd | ||
|
||
contents: | ||
# base configuration file | ||
- src: .release/ipk/config.yml | ||
dst: /etc/xmidt-agent/01-config.yml | ||
|
||
ipk: | ||
fields: | ||
Bugs: https://github.com/xmidt-org/xmidt-agent/issues | ||
|
||
source: | ||
enabled: true | ||
name_template: '{{ .ProjectName }}_{{ .Version }}_src' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
mock_tr_181: | ||
enabled: true | ||
file_path: "/mock_tr181.json" | ||
service_name: "mock_config" | ||
service_name: "config" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# SPDX-FileCopyrightText: 2024 Comcast Cable Communications Management, LLC | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
# Put any configuration values that should always be present here. | ||
# | ||
# Note: | ||
# These values should be generic and apply to all consumers (openwrt, rdk, etc) | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
# SPDX-FileCopyrightText: 2024 Comcast Cable Communications Management, LLC | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
systemctl preset xmidt-agent.service >/dev/null 2>&1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
# SPDX-FileCopyrightText: 2024 Comcast Cable Communications Management, LLC | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
getent group xmidt-agent > /dev/null || groupadd -r xmidt-agent | ||
getent passwd xmidt-agent > /dev/null || \ | ||
useradd \ | ||
-d /var/run/xmidt-agent \ | ||
-r \ | ||
-g xmidt-agent \ | ||
-s /sbin/nologin \ | ||
-c "Xmidt-Agent Client" \ | ||
xmidt-agent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# SPDX-FileCopyrightText: 2024 Comcast Cable Communications Management, LLC | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
[Unit] | ||
Description=The client agent for the Xmidt service. | ||
After=network.target remote-fs.target nss-lookup.target | ||
|
||
[Service] | ||
User=xmidt-agent | ||
Group=xmidt-agent | ||
SyslogIdentifier=xmidt-agent | ||
PIDFile=/run/xmidt-agent.pid | ||
ExecStartPre=/usr/bin/rm -f /run/xmidt-agent.pid | ||
ExecStart=/usr/bin/xmidt-agent | ||
Type=simple | ||
ExecReload=/bin/kill -s HUP $MAINPID | ||
KillMode=process | ||
PrivateTmp=true | ||
Restart=always | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.