Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inventory vPort entities (Nuage) into NetworkPort model (MIQ) #101

Merged
merged 1 commit into from
Jul 13, 2018

Conversation

miha-plesko
Copy link
Contributor

With this commit we inventory NetworkPorts that can be of different
types in Nuage:

  • Bridge vPort
  • Host vPort
  • VM vPort
  • Container vPort

Each of them has a unique way of retrieving IP address by performing additional API request, hence the case-when statement in the parser.

image

BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1574927

Copy link
Contributor

@Ladas Ladas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great 👍


def add_cloud_subnet_network_ports(extra_properties = {})
add_collection(network, :cloud_subnet_network_ports, extra_properties) do |builder|
builder.add_properties(:parent => manager, :parent_inventory_collections => %i(network_ports))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you fix this 1 rubocop nit? There is extra space

With this commit we inventory NetworkPorts that can be of different
types in Nuage:

- Bridge vPort
- Host vPort
- VM vPort
- Container vPort

Each of them has a unique way of retrieving IP address by
performing additional API request, hence the case-when statement
in the parser.

BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1574927
Signed-off-by: Miha Pleško <[email protected]>
@miha-plesko
Copy link
Contributor Author

Yeah, had to run somewhere yesterday then I didn't come back until today. Sorry it took me a day to remove this single space.

@miq-bot
Copy link
Member

miq-bot commented Jul 13, 2018

Checked commit miha-plesko@a0d7b24 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
12 files checked, 0 offenses detected
Everything looks fine. 🏆

@Ladas Ladas merged commit 2441d10 into ManageIQ:master Jul 13, 2018
@Ladas Ladas added this to the Sprint 90 Ending Jul 16, 2018 milestone Jul 13, 2018
@miha-plesko miha-plesko deleted the inventory-vports branch July 24, 2018 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants