Skip to content

Added UDP IPV4 Encapsulation Header as per requirement - #285

Open
keysightgems wants to merge 1 commit into
openconfig:mainfrom
keysightgems:update_udpv4_encap
Open

Added UDP IPV4 Encapsulation Header as per requirement#285
keysightgems wants to merge 1 commit into
openconfig:mainfrom
keysightgems:update_udpv4_encap

Conversation

@keysightgems

Copy link
Copy Markdown

The changes were required based on the README/PR below, so I added the IPv4 UDP encapsulation header code accordingly. Please review and merge the changes.

Readme Location: https://github.com/openconfig/featureprofiles/blob/main/feature/gribi/mpls_in_udp/otg_tests/mpls_in_udp_scale/README.md
Raised PR for the Readme: openconfig/featureprofiles#5714

@robshakir robshakir left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the change.

Please can you also add a test into fluent_test.go's TestEntry table-driven test that validates that this functionality works as expected within an entry?

Comment thread fluent/fluent.go
}

// UDPV4EncapHeader returns a builder that can be used to build up a UDPv4 encapsulation header.
func UDPV4EncapHeader() *udpv4EncapHeader {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Go style recommends that this should be UDPv4EncapHeader. Please can you update it here and throughout the change?

Suggested change
func UDPV4EncapHeader() *udpv4EncapHeader {
func UDPv4EncapHeader() *udpv4EncapHeader {

Comment thread fluent/fluent.go
pb *aftpb.Afts_NextHop_EncapHeader
}

// UDPEncapHeader represents a UDP encapsulation header.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whilst you're changing this code, can you make this comment have the correct name please?

Suggested change
// udpv6EncapHeader represents a UDP encapsulation header.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants