sonic-net / DASH

Disaggregated APIs for SONiC Hosts
Apache License 2.0
83 stars 89 forks source link

Add PL NSG #515

Closed marian-pritsak closed 4 months ago

KrisNey-MSFT commented 7 months ago

This is about adding a 2nd layer of encapsulation - see links

marian-pritsak commented 5 months ago

SAI Attributes for the tunnel object:

/**
 * @brief Attribute ID for dash_tunnel_tunnel1
 */
typedef enum _sai_tunnel1_attr_t
{
    /**
     * @brief Start of attributes
     */
    SAI_TUNNEL1_ATTR_START,

    /**
     * @brief Action set_tunnel1_attrs parameter UNDERLAY_DIP
     *
     * @type sai_ip_address_t
     * @flags CREATE_AND_SET
     * @default 0.0.0.0
     */
    SAI_TUNNEL1_ATTR_UNDERLAY_DIP = SAI_TUNNEL1_ATTR_START,

    /**
     * @brief Action set_tunnel1_attrs parameter DASH_ENCAPSULATION
     *
     * @type sai_dash_encapsulation_t
     * @flags CREATE_AND_SET
     * @default SAI_DASH_ENCAPSULATION_VXLAN
     */
    SAI_TUNNEL1_ATTR_DASH_ENCAPSULATION,

    /**
     * @brief Action set_tunnel1_attrs parameter TUNNEL_KEY
     *
     * @type sai_uint32_t
     * @flags CREATE_AND_SET
     * @default 0
     */
    SAI_TUNNEL1_ATTR_TUNNEL_KEY,

    /**
     * @brief End of attributes
     */
    SAI_TUNNEL1_ATTR_END,

    /** Custom range base value */
    SAI_TUNNEL1_ATTR_CUSTOM_RANGE_START = 0x10000000,

    /** End of custom range base */
    SAI_TUNNEL1_ATTR_CUSTOM_RANGE_END,

} sai_tunnel1_attr_t;
KrisNey-MSFT commented 5 months ago

@r12f @ashutosh-agrawal agreed to review/merge