Skip to content

Commit

Permalink
Added description for attributes
Browse files Browse the repository at this point in the history
Signed-off-by: ArthiSivanantham <arthi_sivanantham@dell.com>
  • Loading branch information
ArthiSivanantham committed May 3, 2021
1 parent 046de4b commit 3c4c20e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/sonic-yang-models/yang-models/sonic-sflow.yang
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ module sonic-sflow{
import sonic-vlan {
prefix svlan;
}
/*
import sonic-mgmt-port {
prefix smt;
}
*/

description "SFLOW yang Module for SONiC OS";

Expand Down Expand Up @@ -45,6 +50,7 @@ module sonic-sflow{

leaf collector_port {
type inet:port-number;
default 6343;
}

} /* end of list SFLOW_COLLECTOR_LIST */
Expand All @@ -62,6 +68,7 @@ module sonic-sflow{

leaf admin_state {
type stypes:admin_status;
default up;
}

leaf sample_rate {
Expand All @@ -70,6 +77,7 @@ module sonic-sflow{
error-message "sFlow sample rate must be [256-8388608]";
}
}
description "Sets the packet sampling rate. The rate is expressed as an integer N, where the intended sampling rate is 1/N packets.";
}
} /* end of list SFLOW_SESSION_LIST */
} /* end of container SFLOW_SESSION */
Expand All @@ -80,6 +88,7 @@ module sonic-sflow{

leaf admin_state {
type stypes:admin_status;
default down;
}

leaf polling_interval {
Expand All @@ -88,13 +97,19 @@ module sonic-sflow{
error-message "sFlow polling interval must be [0, 5-300]";
}
}
description "The interval within which sFlow data is collected and sent to the configured collectors";
default 20;
}

leaf agent_id {
type union {
type leafref {
path "/prt:sonic-port/prt:PORT/prt:PORT_LIST/prt:name";
}
/*
type leafref {
path "/smt:sonic-mgmt-port/smt:MGMT_PORT/smt:MGMT_PORT_LIST/smt:name";
}*/
type leafref {
path "/svlan:sonic-vlan/svlan:VLAN/svlan:VLAN_LIST/svlan:name";
}
Expand Down

0 comments on commit 3c4c20e

Please sign in to comment.