Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • Kea Kea
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 563
    • Issues 563
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 69
    • Merge requests 69
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • ISC Open Source ProjectsISC Open Source Projects
  • KeaKea
  • Issues
  • #508
Closed
Open
Issue created Feb 27, 2019 by Wlodzimierz Wencel@wlodekMaintainer

remote-network4-set doesn't save subnet

Wasn't it fixed in #493 (closed) Command:

{
  "arguments": {
    "remote": {
      "type": "mysql"
    },
    "server-tags": [
      "abc"
    ],
    "shared-networks": [
      {
        "name": "net1",
        "interface": "enp0s9",
        "subnet4": [
          {
            "interface": "enp0s9",
            "pools": [
              {
                "pool": "192.168.52.1-192.168.52.100"
              }
            ],
            "subnet": "192.168.52.0/24"
          }
        ]
      }
    ]
  },
  "command": "remote-network4-set"
}

result:

{
  "arguments": {
    "shared-networks": [
      {
        "name": "net1"
      }
    ]
  },
  "result": 0,
  "text": "IPv4 shared network successfully set."
}

but mysql db is missing subnet:

mysql> select * from dhcp4_shared_network;
+----+------+--------------+-----------+-----------------+---------------------+--------------+-------+-------------+------------------------+------------------+--------------+----------------+
| id | name | client_class | interface | match_client_id | modification_ts     | rebind_timer | relay | renew_timer | require_client_classes | reservation_mode | user_context | valid_lifetime |
+----+------+--------------+-----------+-----------------+---------------------+--------------+-------+-------------+------------------------+------------------+--------------+----------------+
|  1 |      | NULL         | enp0s9    |               1 | 2019-02-21 05:40:02 |         NULL | NULL  |        NULL | [  ]                   |                3 | NULL         |           NULL |
+----+------+--------------+-----------+-----------------+---------------------+--------------+-------+-------------+------------------------+------------------+--------------+----------------+
1 row in set (0.00 sec)

mysql> select * from dhcp4_subnet;
Empty set (0.00 sec)

and network4-get return incorrect network:

  {
    "arguments": {
      "count": 1,
      "shared-networks": [
        {
          "authoritative": false,
          "interface": "enp0s9",
          "match-client-id": true,
          "name": "net1",
          "option-data": [],
          "relay": {
            "ip-addresses": []
          },
          "reservation-mode": "all",
          "subnet4": []
        }
      ]
    },
    "result": 0,
    "text": "IPv4 shared network 'net1' found."
  }
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking