Page MenuHomeDevCentral

Simplify IPv6 routing for FreeBSD
Needs ReviewPublic

Authored by dereckson on Fri, Apr 3, 17:59.

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