[sflow] Add egress sflow support. (#14630)
* [sflow] Add egress sflow support. - Updated sonic-yang-model - change hsflowd version to 2.0.45
This commit is contained in:
parent
084d012749
commit
94790bef04
@ -1,6 +1,6 @@
|
||||
# host-sflow package
|
||||
|
||||
HSFLOWD_VERSION = 2.0.35
|
||||
HSFLOWD_VERSION = 2.0.45
|
||||
HSFLOWD_SUBVERSION = 1
|
||||
|
||||
export ENABLE_SFLOW_DROPMON
|
||||
|
@ -1776,7 +1776,8 @@ SFLOW
|
||||
|
||||
| Field | Description | Mandatory | Default | Reference |
|
||||
|------------------|-----------------------------------------------------------------------------------------|-------------|-----------|-------------------------------------------|
|
||||
| admin_state | Global sflow admin state | | down | |
|
||||
| admin_state | Global sflow admin state | | down |
|
||||
| sample_direction | Global sflow sample direction | | rx | |
|
||||
| polling_interval | The interval within which sFlow data is collected and sent to the configured collectors | | 20 | |
|
||||
| agent_id | Interface name | | | PORT:name,PORTCHANNEL:name,MGMT_PORT:name, VLAN:name |
|
||||
|
||||
@ -1788,7 +1789,7 @@ key - port
|
||||
| port | Sets sflow session table attributes for either all interfaces or a specific Ethernet interface. | | | PORT:name |
|
||||
| admin_state | Per port sflow admin state | | up | |
|
||||
| sample_rate | Sets the packet sampling rate. The rate is expressed as an integer N, where the intended sampling rate is 1/N packets. | | | |
|
||||
|
||||
| sample_direction| Per port sflow sample direction | | rx
|
||||
SFLOW_COLLECTOR
|
||||
|
||||
key - name
|
||||
|
@ -144,6 +144,7 @@
|
||||
{
|
||||
"port": "Ethernet0",
|
||||
"admin_state": "up",
|
||||
"sample_direction": "both",
|
||||
"sample_rate": "40000"
|
||||
}
|
||||
]
|
||||
@ -158,6 +159,7 @@
|
||||
{
|
||||
"port": "Ethernet4",
|
||||
"admin_state": "down",
|
||||
"sample_direction": "tx",
|
||||
"sample_rate": "32768"
|
||||
}
|
||||
]
|
||||
@ -242,6 +244,7 @@
|
||||
"global": {
|
||||
"agent_id": "Ethernet0",
|
||||
"admin_state": "up",
|
||||
"sample_direction": "both",
|
||||
"polling_interval": "20"
|
||||
}
|
||||
}
|
||||
|
@ -32,10 +32,28 @@ module sonic-sflow{
|
||||
|
||||
description "SFLOW yang Module for SONiC OS";
|
||||
|
||||
revision 2023-04-11 {
|
||||
description "Add direction command to support egress sflow";
|
||||
}
|
||||
|
||||
revision 2021-04-26 {
|
||||
description "First Revision";
|
||||
}
|
||||
|
||||
typedef sample_direction {
|
||||
type enumeration {
|
||||
enum rx {
|
||||
description "rx direction";
|
||||
}
|
||||
enum tx {
|
||||
description "tx direction";
|
||||
}
|
||||
enum both {
|
||||
description "Both tx and rx direction";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
container sonic-sflow {
|
||||
|
||||
container SFLOW_COLLECTOR {
|
||||
@ -111,6 +129,13 @@ module sonic-sflow{
|
||||
}
|
||||
description "Sets the packet sampling rate. The rate is expressed as an integer N, where the intended sampling rate is 1/N packets.";
|
||||
}
|
||||
|
||||
leaf sample_direction {
|
||||
type sample_direction;
|
||||
default "rx";
|
||||
description "sflow sample direction";
|
||||
}
|
||||
|
||||
} /* end of list SFLOW_SESSION_LIST */
|
||||
} /* end of container SFLOW_SESSION */
|
||||
|
||||
@ -156,6 +181,13 @@ module sonic-sflow{
|
||||
}
|
||||
description "Interface name";
|
||||
}
|
||||
|
||||
leaf sample_direction {
|
||||
type sample_direction;
|
||||
default "rx";
|
||||
description "sflow sample direction";
|
||||
}
|
||||
|
||||
} /* end of container global */
|
||||
} /* end of container SFLOW */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user