-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[Banner] Add new feature including config, yang and tests #16957
Conversation
echo -e "$LOGIN" > /etc/issue | ||
echo -e "$MOTD" > /etc/motd | ||
echo -e "$LOGOUT" > /etc/logout_message | ||
fi |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
/azpw run sonic-net.sonic-buildimage |
/AzurePipelines run sonic-net.sonic-buildimage |
No pipelines are associated with this pull request. |
bbbd9c1
to
b0abf75
Compare
Please resolve the conflict. #Closed |
@@ -0,0 +1,50 @@ | |||
module sonic-banner { | |||
yang-version 1.1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -0,0 +1,17 @@ | |||
[Unit] | |||
Description=Update banner config based on configdb |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a later comment on HLD https://github.com/sonic-net/SONiC/pull/1361/files#r1451662677 #Closed
description "BANNER_MESSAGE part of config_db.json"; | ||
container MESSAGE { | ||
leaf state { | ||
type string { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/sonic-net/sonic-buildimage/blob/master/src/sonic-yang-models/yang-templates/sonic-types.yang.j2#L127
Can you use admin_mode from sonic-types.yang?
There was a problem hiding this comment.
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 */ |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
77747b9
to
3d8a7ed
Compare
Fixed conflicts |
3d8a7ed
to
7cee98d
Compare
7cee98d
to
0ff79e8
Compare
0ff79e8
to
27550c6
Compare
Reviewers, can you please help to check the updates to see if you are ok to approve this PR? Thanks. |
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.
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.
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.
Why I did it
Added Banner feature related services according to HLD: sonic-net/SONiC#1361
Work item tracking
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)
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)