-
Notifications
You must be signed in to change notification settings - Fork 694
Improve orchagent to enable Dash ZMQ by feature flag. #3619
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
Changes from 24 commits
c87ff47
1d77cdc
b6da170
f4eb45a
5d4aebc
ddc0592
a5a78e5
50509b3
c1b6cf6
eae6a3d
6483a84
2733d11
a45c1be
806e076
b1d9ed2
7116ece
520e4a6
40222a2
e29c922
cf8640a
ab312bd
039a7f7
7fa614a
cea92ce
46a165f
965f236
e9ef477
001f9a6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,6 +7,7 @@ | |
| #include <sairedis.h> | ||
| #include "warm_restart.h" | ||
| #include <iostream> | ||
| #include "orch_zmq_config.h" | ||
|
|
||
| #define SAI_SWITCH_ATTR_CUSTOM_RANGE_BASE SAI_SWITCH_ATTR_CUSTOM_RANGE_START | ||
| #include "sairedis.h" | ||
|
|
@@ -1222,11 +1223,20 @@ bool DpuOrchDaemon::init() | |
| { | ||
| SWSS_LOG_NOTICE("DpuOrchDaemon init..."); | ||
| OrchDaemon::init(); | ||
|
|
||
| // Enable Dash ZMQ with CONFIG_DB flag | ||
| ZmqServer *dash_zmq_server = nullptr; | ||
| if (get_feature_status("orch_dash_zmq_enabled", true)) | ||
|
||
| { | ||
| SWSS_LOG_NOTICE("Dash ZMQ enabled."); | ||
| dash_zmq_server = m_zmqServer; | ||
| } | ||
|
|
||
| vector<string> dash_vnet_tables = { | ||
| APP_DASH_VNET_TABLE_NAME, | ||
| APP_DASH_VNET_MAPPING_TABLE_NAME | ||
| }; | ||
| DashVnetOrch *dash_vnet_orch = new DashVnetOrch(m_applDb, dash_vnet_tables, m_dpu_appstateDb, m_zmqServer); | ||
| DashVnetOrch *dash_vnet_orch = new DashVnetOrch(m_applDb, dash_vnet_tables, m_dpu_appstateDb, dash_zmq_server); | ||
| gDirectory.set(dash_vnet_orch); | ||
|
|
||
| vector<string> dash_tables = { | ||
|
|
@@ -1237,7 +1247,7 @@ bool DpuOrchDaemon::init() | |
| APP_DASH_QOS_TABLE_NAME | ||
| }; | ||
|
|
||
| DashOrch *dash_orch = new DashOrch(m_applDb, dash_tables, m_dpu_appstateDb, m_zmqServer); | ||
| DashOrch *dash_orch = new DashOrch(m_applDb, dash_tables, m_dpu_appstateDb, dash_zmq_server); | ||
| gDirectory.set(dash_orch); | ||
|
|
||
| vector<string> dash_ha_tables = { | ||
|
|
@@ -1254,7 +1264,7 @@ bool DpuOrchDaemon::init() | |
| APP_DASH_ROUTE_GROUP_TABLE_NAME | ||
| }; | ||
|
|
||
| DashRouteOrch *dash_route_orch = new DashRouteOrch(m_applDb, dash_route_tables, dash_orch, m_dpu_appstateDb, m_zmqServer); | ||
| DashRouteOrch *dash_route_orch = new DashRouteOrch(m_applDb, dash_route_tables, dash_orch, m_dpu_appstateDb, dash_zmq_server); | ||
| gDirectory.set(dash_route_orch); | ||
|
|
||
| vector<string> dash_acl_tables = { | ||
|
|
@@ -1264,20 +1274,20 @@ bool DpuOrchDaemon::init() | |
| APP_DASH_ACL_GROUP_TABLE_NAME, | ||
| APP_DASH_ACL_RULE_TABLE_NAME | ||
| }; | ||
| DashAclOrch *dash_acl_orch = new DashAclOrch(m_applDb, dash_acl_tables, dash_orch, m_dpu_appstateDb, m_zmqServer); | ||
| DashAclOrch *dash_acl_orch = new DashAclOrch(m_applDb, dash_acl_tables, dash_orch, m_dpu_appstateDb, dash_zmq_server); | ||
| gDirectory.set(dash_acl_orch); | ||
|
|
||
| vector<string> dash_tunnel_tables = { | ||
| APP_DASH_TUNNEL_TABLE_NAME | ||
| }; | ||
| DashTunnelOrch *dash_tunnel_orch = new DashTunnelOrch(m_applDb, dash_tunnel_tables, m_dpu_appstateDb, m_zmqServer); | ||
| DashTunnelOrch *dash_tunnel_orch = new DashTunnelOrch(m_applDb, dash_tunnel_tables, m_dpu_appstateDb, dash_zmq_server); | ||
| gDirectory.set(dash_tunnel_orch); | ||
|
|
||
| vector<string> dash_meter_tables = { | ||
| APP_DASH_METER_POLICY_TABLE_NAME, | ||
| APP_DASH_METER_RULE_TABLE_NAME | ||
| }; | ||
| DashMeterOrch *dash_meter_orch = new DashMeterOrch(m_applDb, dash_meter_tables, dash_orch, m_dpu_appstateDb, m_zmqServer); | ||
| DashMeterOrch *dash_meter_orch = new DashMeterOrch(m_applDb, dash_meter_tables, dash_orch, m_dpu_appstateDb, dash_zmq_server); | ||
| gDirectory.set(dash_meter_orch); | ||
|
|
||
| addOrchList(dash_acl_orch); | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.