Page MenuHomeDevCentral

Simplify IPv6 routing for FreeBSD
ClosedPublic

Authored by dereckson on Apr 3 2026, 17:59.
Tags
None
Referenced Files
F31074962: D4040.id10554.diff
Sat, May 30, 02:29
Unknown Object (File)
Thu, May 28, 17:57
Unknown Object (File)
Sun, May 24, 04:30
Unknown Object (File)
Sun, May 24, 02:10
Unknown Object (File)
Mon, May 18, 22:24
Unknown Object (File)
Sun, May 17, 17:07
Unknown Object (File)
Thu, Apr 30, 14:10
Unknown Object (File)
Apr 28 2026, 15:27
Subscribers
None

Details

Summary

IPv6 default gateway route on FreeBSD needs to include interface.

NetBox -> pillar script ensuires device interface (e.g. igb0) is set
at interface level. That device is then always passed to the template:
interface: {{ interface['device'] }}

Ref T2295

Test Plan
  • route -6 add default fe80::a293:51ff:feb7:55ef%igb0
  • Reboot WindRiver

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Passed
Unit
No Test Coverage
Branch
network-ipv6-routing
Build Status
Buildable 6562
Build 6846: arc lint + arc unit

Event Timeline

dereckson created this revision.
WindRiver
$ salt-call --local state.apply roles/core/network/ipv6 
local:
----------
          ID: /etc/rc.conf.d/netif/ipv6_igb0
    Function: file.managed
      Result: True
     Comment: File /etc/rc.conf.d/netif/ipv6_igb0 is in the correct state
     Started: 17:54:13.510501
    Duration: 19.632 ms
     Changes:   
----------
          ID: /etc/rc.conf.d/routing/ipv6
    Function: file.managed
      Result: True
     Comment: File /etc/rc.conf.d/routing/ipv6 updated
     Started: 17:54:13.530295
    Duration: 11.486 ms
     Changes:   
              ----------
              diff:
                  --- 
                  +++ 
                  @@ -14,6 +14,4 @@
                   #   </auto-generated>
                   
                   
                  -ipv6_static_routes="gw default"
                  -ipv6_route_gw="fe80::a293:51ff:feb7:55ef -iface igb0"
                  -ipv6_route_default="default fe80::a293:51ff:feb7:55ef"
                  +ipv6_defaultrouter="fe80::a293:51ff:feb7:55ef%igb0"

Summary for local
------------
Succeeded: 2 (changed=1)
Failed:    0
------------
Total states run:     2
Total run time:  31.118 ms
This revision is now accepted and ready to land.Apr 6 2026, 20:11
This revision was automatically updated to reflect the committed changes.