public icon indicating copy to clipboard operation
public copied to clipboard

Add a configurable dont-fragment flag to sflow

Open rgwilton opened this issue 2 months ago • 2 comments

Change Scope

Adding a boolean configuration setting to set the df-bit for sflow packets to a particular collector. This change is backwards compatible.

Platform Implementations

  • Implementation IOS XR: We are adding support for this.
  • I couldn't see a second implementation that implements this, most relying on setting the max packet size, but it seems a reasonable and useful addition.
module: openconfig-sampling-sflow

 augment /oc-sampling:sampling:
   +--rw sflow
      +--rw config
      |  +--rw enabled?                 boolean
      |  +--rw agent-id-ipv4?           oc-inet:ipv4-address
      |  +--rw agent-id-ipv6?           oc-inet:ipv6-address
      |  +--rw dscp?                    oc-inet:dscp
      |  +--rw sample-size?             uint16
      |  +--rw polling-interval?        uint16
      |  +--rw ingress-sampling-rate?   uint32
      |  +--rw egress-sampling-rate?    uint32
      +--ro state
      |  +--ro enabled?                 boolean
      |  +--ro agent-id-ipv4?           oc-inet:ipv4-address
      |  +--ro agent-id-ipv6?           oc-inet:ipv6-address
      |  +--ro dscp?                    oc-inet:dscp
      |  +--ro sample-size?             uint16
      |  +--ro polling-interval?        uint16
      |  +--ro ingress-sampling-rate?   uint32
      |  +--ro egress-sampling-rate?    uint32
      +--rw collectors
      |  +--rw collector* [address port]
      |     +--rw address    -> ../config/address
      |     +--rw port       -> ../config/port
      |     +--rw config
      |     |  +--rw address?             oc-inet:ip-address
      |     |  +--rw port?                oc-inet:port-number
      |     |  +--rw source-address?      oc-inet:ip-address
      |     |  +--rw max-datagram-size?   uint16
      |     |  +--rw dont-fragment?       boolean                         <--- ADDED
      |     |  +--rw network-instance?    oc-netinst:network-instance-ref
      |     +--ro state
      |        +--ro address?             oc-inet:ip-address
      |        +--ro port?                oc-inet:port-number
      |        +--ro source-address?      oc-inet:ip-address
      |        +--ro max-datagram-size?   uint16
      |        +--ro dont-fragment?       boolean                         <--- ADDED
      |        +--ro network-instance?    oc-netinst:network-instance-ref
      |        +--ro packets-sent?        oc-yang:counter64

rgwilton avatar Nov 19 '25 15:11 rgwilton

/gcbrun

dplore avatar Nov 19 '25 19:11 dplore

No major YANG version changes in commit fe11fefa7fd7c2cc410c5ac16025ebbd8eeb36f4

OpenConfigBot avatar Nov 19 '25 19:11 OpenConfigBot

/gcbrun

dplore avatar Jan 07 '26 00:01 dplore