Skip to content

Commit

Permalink
add device index
Browse files Browse the repository at this point in the history
  • Loading branch information
nahumtimerman committed Feb 8, 2018
1 parent 2704c25 commit d0196e0
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,10 @@ def _get_vm_network_data(self, instance):
network_interface_object["network_data"].append(AdditionalData("Elastic IP", is_attached_to_elastic_ip))

network_interface_object["network_data"].append(AdditionalData("MAC Address", network_interface.mac_address))
network_interface_object["network_data"].append(AdditionalData("Device Index", network_interface.attachment.get("DeviceIndex")))

network_interface_objects.append(network_interface_object)


# TODO sort by device index
return network_interface_objects

def _calculate_public_ip(self, interface):
Expand Down

0 comments on commit d0196e0

Please sign in to comment.