Command;
opx-config-sflow set --id 8 --direction ingress_egress --rate 10000
Log output:
Mar 22 21:21:05 r4 opx_nas_daemon[687]: [ev_log_t_SAI_SAMPLEPACKET:Switch Id: 0], Samplepacket Port addition failed for port 0x1000000000045
Mar 22 21:21:05 r4 opx_nas_daemon[687]: [ev_log_t_SAI_SAMPLEPACKET:Switch Id: 0], Could not add port 0x1000000000045 to the samplepacket session 0xf000000000002
Mar 22 21:21:05 r4 opx_nas_daemon[687]: [ev_log_t_SAI_PORT:Switch Id: 0], Egress SamplePacket set on port id 0x1000000000045 failed
Mar 22 21:21:05 r4 opx_nas_daemon[687]: [ev_log_t_SAI_PORT:Switch Id: 0], SAI Error code is -1
Mar 22 21:21:05 r4 opx_nas_daemon[687]: [NAS_L2:NDI-SFLOW], Failed to update sampling direction 2 with val 1 for the sflow session f000000000002
Mar 22 21:21:05 r4 python[14900]: [DSAPI:COMMIT], Error -1610579968: commit 1/1 failed, type 0, break (target/base-sflow/entry
base-sflow/entry/direction : 3:(4)
base-sflow/entry/id : 8:(4)
base-sflow/entry/sampling-rate : 2710:(4)
cps/object-group/return-code : a0008000:(4)
)
Command;
opx-config-sflow set --id 8 --direction ingress_egress --rate 10000
Log output: