Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Banner] Add new feature including config, yang and tests #16957

Merged
merged 3 commits into from
Apr 16, 2024

Conversation

SviatoslavBoichuk
Copy link
Contributor

Why I did it

Added Banner feature related services according to HLD: sonic-net/SONiC#1361

Work item tracking
  • Microsoft ADO (number only):

How I did it

Added banner-config systemd service, YANG model for new ConfDB table and YANG model tests

How to verify it

Manual test

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211
  • 202305

Tested branch (Please provide the tested image version)

Description for the changelog

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

echo -e "$LOGIN" > /etc/issue
echo -e "$MOTD" > /etc/motd
echo -e "$LOGOUT" > /etc/logout_message
fi

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If state is disabled, are you planning clear banner files?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, we do not clean banner messages.

@liat-grozovik liat-grozovik changed the title Dev banner feature [Banner] Add new feature including config, yang and tests Dec 3, 2023
@SviatoslavBoichuk
Copy link
Contributor Author

/azpw run sonic-net.sonic-buildimage

@mssonicbld
Copy link
Collaborator

/AzurePipelines run sonic-net.sonic-buildimage

Copy link

No pipelines are associated with this pull request.

@qiluo-msft
Copy link
Collaborator

qiluo-msft commented Jan 14, 2024

Please resolve the conflict. #Closed

@qiluo-msft qiluo-msft requested review from wen587 and ganglyu January 14, 2024 05:39
@qiluo-msft qiluo-msft added the YANG YANG model related changes label Jan 14, 2024
@@ -0,0 +1,50 @@
module sonic-banner {
yang-version 1.1;
Copy link
Collaborator

@qiluo-msft qiluo-msft Jan 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ganglyu @wen587 Please review the yang change. #Closed

@@ -0,0 +1,17 @@
[Unit]
Description=Update banner config based on configdb
Copy link
Collaborator

@qiluo-msft qiluo-msft Jan 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

description "BANNER_MESSAGE part of config_db.json";
container MESSAGE {
leaf state {
type string {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

}
} /* end of container MESSAGE */
}
/* end of container BANNER_MESSAGE */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please keep the same ending style like line 45

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@SviatoslavBoichuk SviatoslavBoichuk force-pushed the dev-banner-feature branch 2 times, most recently from 77747b9 to 3d8a7ed Compare January 22, 2024 14:57
@SviatoslavBoichuk
Copy link
Contributor Author

Please resolve the conflict.

Fixed conflicts

@zhangyanzhao
Copy link
Collaborator

Reviewers, can you please help to check the updates to see if you are ok to approve this PR? Thanks.

@zhangyanzhao zhangyanzhao added the Triaged this issue has been triaged label Feb 8, 2024
@qiluo-msft
Copy link
Collaborator

@ganglyu @wen587 Do you have more concerns?

@liat-grozovik liat-grozovik merged commit 0b8b503 into sonic-net:master Apr 16, 2024
19 checks passed
ganglyu added a commit to sonic-net/sonic-gnmi that referenced this pull request Apr 18, 2024
Why I did it
sonic-net/sonic-buildimage#16957
Above PR introduced "\n" in config_db, and current GNMI implementation does not support such config.

How I did it
Update yang validation part to read config from file.

How to verify it
Run GNMI end to end test.
ganglyu added a commit to ganglyu/sonic-gnmi that referenced this pull request Jun 18, 2024
Why I did it
sonic-net/sonic-buildimage#16957
Above PR introduced "\n" in config_db, and current GNMI implementation does not support such config.

How I did it
Update yang validation part to read config from file.

How to verify it
Run GNMI end to end test.
ganglyu added a commit to ganglyu/sonic-gnmi that referenced this pull request Jun 18, 2024
Why I did it
sonic-net/sonic-buildimage#16957
Above PR introduced "\n" in config_db, and current GNMI implementation does not support such config.

How I did it
Update yang validation part to read config from file.

How to verify it
Run GNMI end to end test.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Triaged this issue has been triaged YANG YANG model related changes
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

8 participants