Skip to content

Conversation

mateoflorido
Copy link
Member

@mateoflorido mateoflorido commented Sep 3, 2025

Description

Fix an invalid iproute2 JSON output in arm64

Solution

Given that all JSON is a valid YAML we can use its parser to avoid errors caused by invalid JSON.

Issue

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2121908

Backport

Should this PR be backported? If so, to which release?

Checklist

  • PR title formatted as type: title
  • Covered by unit tests
  • Covered by integration tests
  • Documentation updated
  • CLA signed
  • Backport label added if necessary

@mateoflorido mateoflorido requested a review from a team as a code owner September 3, 2025 13:57
@mateoflorido mateoflorido force-pushed the m/fix-invalid-vlan-vin branch from 00cea61 to 05b4ca3 Compare September 3, 2025 15:33
@rapour
Copy link
Contributor

rapour commented Sep 3, 2025

@mateoflorido Thanks a lot for the workaround and LGTM. I think this can catch what we've seen so far. Even if it doesn't catch every edge case, a valid json value cannot start with a number and continue with a string, so it should be quite benign for any valid response and shouldn't do any harm. I'll leave the final approval to @addyess and @berkayoz

@mateoflorido mateoflorido force-pushed the m/fix-invalid-vlan-vin branch from 01c344f to ad6254d Compare September 3, 2025 16:52
Comment on lines +36 to +37
// combines the VXLAN VNI value with the fan-map extension, resulting in
// invalid JSON, but a valid YAML.
Copy link
Contributor

Choose a reason for hiding this comment

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

😍

Copy link
Contributor

@addyess addyess left a comment

Choose a reason for hiding this comment

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

Yep, this is lovely and simple

@mateoflorido mateoflorido merged commit adbd67e into main Sep 3, 2025
56 checks passed
@mateoflorido mateoflorido deleted the m/fix-invalid-vlan-vin branch September 3, 2025 19:51
github-actions bot pushed a commit that referenced this pull request Sep 3, 2025
Fix Invalid `iproute2` JSON output in arm64

(cherry picked from commit adbd67e)
@cdkbot
Copy link
Collaborator

cdkbot commented Sep 3, 2025

Successfully created backport PR for release-1.32:

github-actions bot pushed a commit that referenced this pull request Sep 3, 2025
Fix Invalid `iproute2` JSON output in arm64

(cherry picked from commit adbd67e)
@cdkbot
Copy link
Collaborator

cdkbot commented Sep 3, 2025

Successfully created backport PR for release-1.33:

github-actions bot pushed a commit that referenced this pull request Sep 3, 2025
Fix Invalid `iproute2` JSON output in arm64

(cherry picked from commit adbd67e)
@cdkbot
Copy link
Collaborator

cdkbot commented Sep 3, 2025

Successfully created backport PR for release-1.34:

mateoflorido added a commit that referenced this pull request Sep 4, 2025
Fix Invalid `iproute2` JSON output in arm64

(cherry picked from commit adbd67e)

Co-authored-by: Mateo Florido <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants