-
Notifications
You must be signed in to change notification settings - Fork 580
Improve swssconfig to support ZMQ #3620
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
Improve swssconfig to support ZMQ #3620
Conversation
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
swssconfig/swssconfig.cpp
Outdated
@@ -39,12 +52,36 @@ void dump_db_item(KeyOpFieldsValuesTuple &db_item) | |||
SWSS_LOG_DEBUG("]"); | |||
} | |||
|
|||
bool write_db_data(vector<KeyOpFieldsValuesTuple> &db_items) | |||
bool is_zmq_table(string table_name, int zmq_flag) |
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.
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.
Fixed, add new config in following PR:
sonic-net/sonic-buildimage#22451
@theasianpianist , @prabhataravind for viz and review. |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
lib/orch_zmq_config.h
Outdated
* Orchagent ZMQ enabled table will stored in "DEVICE_METADATA|localhost" table "orch_zmq_tables" field. | ||
*/ | ||
#define DEVICE_METADATA_LOCALHOST "DEVICE_METADATA|localhost" | ||
#define ZMQ_TABLE_LIST_FIELD "orch_zmq_tables@" |
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.
Are these 3 #defines used?
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.
These no longer used, fixed.
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Improve swssconfig to support ZMQ
Why I did it
swssconfig does not support ZMQ
How I did it
Improve swss to support ZMQ
swssconfig will load orchagent ZMQ table list from CONFIG_DB, and create ZMQ channel according to the config:
sonic-net/sonic-buildimage#22451
Work item tracking
How to verify it
Pass all test cases.
Verified with PR: sonic-net/sonic-buildimage#22414
Which release branch to backport (provide reason below if selected)
Description for the changelog
Improve swssconfig to support ZMQ
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)