Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • F foris-controller
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 74
    • Issues 74
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 9
    • Merge requests 9
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • TurrisTurris
  • Foris ControllerForis Controller
  • foris-controller
  • Issues
  • #259
Closed
Open
Issue created Jan 14, 2023 by Martin Matějek@mmatejekMaintainer

lan: Ignore 'ipv6-prefix' of DHCPv6 leases

If assigned IPv6 prefix is large enough, downstream router gets both IPv6 address for wan interface and IPv6 prefix for its own networks from odhcpd.

This cause fetching DHCPv6 leases data in such setups to fail ('missing key ipv6-addr').

Ignore ipv6-prefix or any other unexpected values and use only ipv6-addr data.

For instance:

    $ ubus call dhcp ipv6leases
    {
      "device": {
        "br-guest-turris": {
          "leases": [
    
          ]
        },
        "br-lan": {
          "leases": [
            {
              "duid": "<DUID redacted>",
              "iaid": 1,
              "hostname": "downstream-router",
              "accept-reconf": true,
              "assigned": 17,
              "flags": [
                "bound",
                "static"
              ],
              "ipv6-addr": [
                {
                  "address": "2001:xxxx:xxxx::11",
                  "preferred-lifetime": 42,
                  "valid-lifetime": 42
                },
                {
                  "address": "fd60:xxxx:xxxx::11",
                  "preferred-lifetime": 42,
                  "valid-lifetime": 42
                }
              ],
              "valid": 42
            },
            {
              "duid": "<DUID redacted>",
              "iaid": 1,
              "hostname": "downstream-router",
              "accept-reconf": true,
              "assigned": 4,
              "flags": [
                "bound",
                "static"
              ],
              "ipv6-prefix": [ <--- We don't care about this part right now, let's ignore it.
                {
                  "address": "2001:xxxx:xxxx:4::",
                  "preferred-lifetime": 42,
                  "valid-lifetime": 42,
                  "prefix-length": 62
                },
                {
                  "address": "fd60:xxxx:xxxx:4::",
                  "preferred-lifetime": 42,
                  "valid-lifetime": 42,
                  "prefix-length": 62
                }
              ],
              "valid": 42
            }
          ]
        }
      }
    }
Edited Jan 16, 2023 by Martin Matějek
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking