TritonDataCenter / TritonDataCenter/sdc-cloudapi

Provision IP outside of Range

Open
#79 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
8
Forks
22
Avg merge
3d 9h
Merged PRs (30d)
1

Description

Was able to deploy a reserved address outside the provisionable range of the network.

Network:

cps_lan                                  37a1cc60-ced2-4e59-a62f-1d40525dc8b8  2027   10.91.206.0/24    10.91.206.254
    UUID 37a1cc60-ced2-4e59-a62f-1d40525dc8b8
    Owners
    7e600efd-696c-699a-b21c-e83e590e638f
    aa2ebc36-803f-4c57-9f69-f09419d3a43a
    b083728b-8d87-42bf-f633-be04f3038460
    VLAN ID 2027
    Network 10.91.206.0/24
    Gateway 10.91.206.254
    Netmask 255.255.255.0
    IP Range 10.91.206.11 - 10.91.206.20
    NIC Tag external
    Resolvers 10.45.137.14,10.45.137.15
    MTU 1500
    Description CPS IP Admins

Instance Provisioned with

triton  inst create cfa9c88e-03f8-11eb-9980-879ff7980a9f con-2c-4m-50d-gpc --nic ipv4_uuid=37a1cc60-ced2-4e59-a62f-1d40525dc8b8,ipv4_ips=10.91.206.1 -n ip-test

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the Triton API entry point exercised by the provided triton inst create command and trace how the ipv4_ips value is validated against the network's IP range. Reproduce the request using the network and instance details in the issue; done means an address outside the provisionable range is rejected, with a regression test covering the case.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.