← Back to Pull requests

T4665: Keepalived: Fix interface names #1526

Closed
unknown closed this pull request without merging on Sep 12, 2022 06:07 UTC
View on GitHub
unknown unknown commented on Sep 08, 2022 14:51 UTC
Author

Change Summary

When applying the same VRID for IPv4 and IPv6 with RFC3768 compatibility enabled, the IPv6 interfaces came back with the wrong name. For example:

Name Interface VRID State Priority Last Transition
------ ----------- ------ ------- ---------- -----------------
v4-10 eth1v10 10 MASTER 100 21s
v6-10 vrrpv10 10 MASTER 100 21s

Because of this, the IPv6 interface didn't show up in show int.

This change suffixes the interface with the IP version so show int works again.

Name Interface VRID State Priority Last Transition
------ ----------- ------ ------- ---------- -----------------
v4-10 eth1v10v4 10 MASTER 100 21s
v6-10 eth1v10v6 10 MASTER 100 21s

vyos@vyos:~$ show interfaces
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface IP Address S/L Description
--------- ---------- --- -----------
[....]
eth1v10v4 192.168.10.60/24 u/u
eth1v10v6 2001:ffff::1/64 u/u
[....]

Types of changes


<!---
What types of changes does your code introduce? Put an 'x' in all the boxes that apply.
NOTE: Markdown requires no leading or trailing whitespace inside the [ ] for checking
the box, please use [x]
-->
  • Bug fix (non-breaking change which fixes an issue)

  • New feature (non-breaking change which adds functionality)

  • Code style update (formatting, renaming)

  • Refactoring (no functional changes)

  • Migration from an old Vyatta component to vyos-1x, please link to related PR inside obsoleted component

  • Other (please describe):
  • Related Task(s)


    <!-- All submitted PRs must be linked to a Task on Phabricator. -->
  • https://phabricator.vyos.net/T4665
  • Component(s) name


    <!-- A rather incomplete list of components: ethernet, wireguard, bgp, mpls, ldp, l2tp, dhcp ... -->
    keepalived

    Proposed changes


    <!--- Describe your changes in detail -->

    How to test


    <!---
    Please describe in detail how you tested your changes. Include details of your testing
    environment, and the tests you ran. When pasting configs, logs, shell output, backtraces,
    and other large chunks of text, surround this text with triple backtics
    like this
    

    -->

    Checklist:


    <!--- Go over all the following points, and put an x in all the boxes that apply. -->
    <!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
    <!--- The entire development process is outlined here: https://docs.vyos.io/en/latest/contributing/development.html -->
  • I have read the CONTRIBUTING document

  • I have linked this PR to one or more Phabricator Task(s)

  • I have run the components SMOKETESTS if applicable

  • My commit headlines contain a valid Task id

  • My change requires a change to the documentation

  • I have updated the documentation accordingly
  • Diff: 398 lines (+298 / -100) across 4 files Reviewer: roedie Review duration: 5235m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.43 · 398 lines diff across 4 files
    0.43
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.358
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #1526"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 43.2% (MEDIUM) · Higher = larger blast radius
    43.2%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 17.1% · Safe to merge
    17.1%
    Repository