Skip to content

[swssconfig] Add custom ZMQ endpoint for DPU Orchagent#48

Closed
vivekrnv wants to merge 2 commits into
masterfrom
add_custom_endpoint
Closed

[swssconfig] Add custom ZMQ endpoint for DPU Orchagent#48
vivekrnv wants to merge 2 commits into
masterfrom
add_custom_endpoint

Conversation

@vivekrnv

@vivekrnv vivekrnv commented Jan 31, 2026

Copy link
Copy Markdown
Owner

What I did

On DPU, orchagent starts on eth0-midplane, need an option to provide a custom endpoint for swssconfig to work on DPU

Why I did it

How I verified it

# cat /etc/sonic/ha/ha_config.json
[
    {
        "DASH_HA_SCOPE_TABLE:vdpu0_0": {
            "version": "1",
            "ha_role": "standby",
            "ha_set_id": "haset0_0"
        },
        "OP": "SET"
    }
]

# swssconfig -e tcp://169.254.200.1 /etc/sonic/ha/ha_config.json
#

# tail -f /var/log/swss/sairedis.rec
|c|SAI_OBJECT_TYPE_HA_SCOPE:oid:0x12008000000027|SAI_HA_SCOPE_ATTR_HA_SET_ID=oid:0x11008000000026|SAI_HA_SCOPE_ATTR_DASH_HA_ROLE=SAI_DASH_HA_ROLE_STANDBY
|s|SAI_OBJECT_TYPE_ENI:oid:0x7008000000025|SAI_ENI_ATTR_HA_SCOPE_ID=oid:0x12008000000027

Details if related

Signed-off-by: Vivek Reddy <vkarri@nvidia.com>
@vivekrnv vivekrnv changed the title [swsconfig] Add custom ZMQ endpoint [swssconfig] Add custom ZMQ endpoint Feb 2, 2026
Comment thread swssconfig/swssconfig.cpp Outdated
@@ -68,7 +70,7 @@ shared_ptr<ProducerStateTable> get_table(unordered_map<string, shared_ptr<Produc

bool write_db_data(vector<KeyOpFieldsValuesTuple> &db_items, set<string> &zmq_tables, std::shared_ptr<ZmqClient> zmq_client)
{
DBConnector db("APPL_DB", 0, false);
DBConnector db("DPU_APPL_DB", 0, true);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Why do we need to hardcode to DPU_APPL_DB here?

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Agree, we should keep it to DPU_APPL_DB if DPU Tables or APPL_DB if using NPU tables

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Handled, Please review and signoff

Signed-off-by: Vivek Reddy <vkarri@nvidia.com>
@vivekrnv vivekrnv changed the title [swssconfig] Add custom ZMQ endpoint [swssconfig] Add custom ZMQ endpoint for DPU Orchagent Feb 11, 2026
@vivekrnv vivekrnv closed this Feb 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants