Update CIF creation request body

Bug #1607267 reported by OpenStack Infra
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
vmware-nsx
Fix Released
Undecided
Unassigned

Bug Description

https://review.openstack.org/346257
Dear bug triager. This bug was created since a commit was marked with DOCIMPACT.
Your project "openstack/vmware-nsx" is set up so that we directly report the documentation bugs against it. If this needs changing, the docimpact-group option needs to be added for the project. You can ask the OpenStack infra team (#openstack-infra on freenode) for help if you need to.

commit 47bb0a8a6c56f6c9c267a45259183897eb7ae74e
Author: Akash Gangil <email address hidden>
Date: Fri Jul 22 07:50:15 2016 -0700

    Update CIF creation request body

    The CIF API got updated in new v3 builds. Here is what changed:
    1. The information like ip, mac, vlan, host_cif_id which was
    intially opaque and just provided as a key value pair inside the
    context body, now have explicit properties.

    2. The context now contains container_host_vif_id, and vlan_tag as
    explicit properties. It still has a key_values array but no information
    is needed to be passed in that. That's more reserved for future use
    cases.

    3. The host_vif_id property name is updated to container_host_vif_id.

    4. The vlan_id property name is updated to vlan_tag.

    5. The IP and mac address of the port are moved out of the context.
    This was previously being duplicated as we pass that information in
    address bindings already.

    Here is the sample request body.

    {
      "resource_type": "LogicalPort",
      "attachment": {
        "attachment_type": "CIF",
        "id": "test-2",
        "context": {
          "vlan_tag": 122,
          "container_host_vif_id": "c6f817a0-4e36-421e-98a6-8a2faed880bc",
          "key_values": [],
          "resource_type": "CifAttachmentContext"
        }
      },
      "admin_state": "UP",
      "logical_switch_id": "<logical-switch-id>",
      "address_bindings": [
        {
          "ip_address": "192.168.1.110",
          "mac_address": "aa:bb:cc:dd:ee:ff"
        }
      ],
    }

    This patch makes the plugin send the expected request body to the
    backend.

    Also this patch updates default argument in the create_port and
    update_port method from parent_name to parent_vif_id

    DocImpact

    Change-Id: Icf9109839284df9217877342182df4dce4ca2787

Tags: doc vmware-nsx
Adit Sarfaty (asarfaty)
Changed in vmware-nsx:
status: New → Fix Committed
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.