Uploaded image for project: 'DeltaCloud'
  1. DeltaCloud
  2. DTACLOUD-574

Address Model should allow the use of an actual identifier for an instance instead of just the IP

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • Server

    Description

      The model for Address doesn't support setting both the address and the id. And, since it doesn't support setting the href it doesn't allow accessing an address specifically by id (which is how you would do it in OpenStack).

      Even just making the "to_hash" method on Address use a ternary on href and making that attribute settable would be an acceptable solution. The only real use case is to be able to retrieve address details for an individual address.

      An example from mock driver:
      <address href="http://localhost:3001/api/addresses/192.168.0.4" id="192.168.0.4"><ip>192.168.0.4</ip><actions><link href="http://localhost:3001/api/addresses/192.168.0.4" method="delete" rel="destroy"/><link href="http://localhost:3001/api/addresses/192.168.0.4/associate" method="post" rel="associate"/></actions></address>

      But 192.168.0.4 isn't an id, it's an IP

      Attachments

        1. add_address_ip.diff
          4 kB
          Andrew Brady

        Activity

          People

            Unassigned Unassigned
            inspectrum Andrew Brady
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: