You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Modify cacl rules to allow incoming packets to dash-ha (#256)
why
swbusd in dash-ha runs grpc client and server for connections within the switch and outside the switch. We need to config CACL iptables rules if dash-ha feature is enabled.
what this PR does
if dash-ha feature is enabled, subscribe to DPU table in config_db. Configure iptables based on the swbus_port in each DPU entries (up to 8). If swbus_port is changed, remove old iptables rules and add new rules. If DPU entry is deleted, remove corresponding iptables rules.
how to verify
Add dash-ha to feature table.
"dash-ha": {
"auto_restart": "disabled",
"delayed": "False",
"has_global_scope": "False",
"has_per_asic_scope": "False",
"has_per_dpu_scope": "True",
"high_mem_alert": "disabled",
"state": "enabled",
"support_syslog_rate_limit": "true"
}
Add DPU table in config_db
"DPU": {
"dpu0": {
"dpu_id": "0",
"gnmi_port": "50051",
"local_port": "8080",
"orchagent_zmq_port": "5555",
"pa_ipv4": "18.0.202.1",
"state": "up",
"swbus_port": "23606",
"vdpu_id": "vdpu0",
"vip_ipv4": "3.2.1.0"
},
...
}
verify iptables rule is created for both ipv4 and ipv6 to tcp port 23606.
change swbus_port and verify old rules are removed and new rules are created.
0 commit comments