Gary Kotton c2d7155b70 NSX|V: make use of granular API for getting DHCP binding
NSX 6.2.8 and 6.3.3 support the granular API:

New GET api:

GET https://<nsxmanagerIp>/api/4.0/edges/<edge-id>/dhcp/config/bindings/<binding-id>
RESPONSE:
           <staticBinding>
                <autoConfigureDNS>false</autoConfigureDNS>
                <leaseTime>86400</leaseTime>
                <subnetMask>255.255.255.0</subnetMask>
                <bindingId>binding-1</bindingId>
                <vmId>vm-34</vmId>
                <vnicId>1</vnicId>
                <hostname>test</hostname>
                <vmName>3-vm_ubuntu_1404_srv_64-shared-1668-02458540-04f1-4508-8037-2f2ce5542b91</vmName>
                <ipAddress>12.12.12.1</ipAddress>
           </staticBinding>

2) Quering a binding with a invalid ID:
   GET https://<nsxmanagerIp>/api/4.0/edges/<edge-id>/dhcp/config/bindings/<binding-id>
   RESPONSE:
           <error>
                <details>[Dhcp] Static binding is not found: binding-2</details>
                <errorCode>12510</errorCode>
                <moduleName>vShield Edge</moduleName>
         </error>

Change-Id: If1049035797c525344c46e1ae7f664a7b9daa4a1
2017-08-04 15:45:05 +03:00
..
2016-08-22 01:25:33 -07:00
2017-03-26 05:09:02 -07:00
2017-03-26 05:09:02 -07:00
2017-04-26 14:54:40 +00:00