From bd45a96a39e0dae02071e469e9c7a511fef2d59e Mon Sep 17 00:00:00 2001 From: felipedf Date: Wed, 18 Apr 2018 17:21:29 -0300 Subject: [PATCH] Parsing vlan info to guest_devices (ports) --- .../physical_infra_manager/parser/network_device_parser.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/models/manageiq/providers/lenovo/physical_infra_manager/parser/network_device_parser.rb b/app/models/manageiq/providers/lenovo/physical_infra_manager/parser/network_device_parser.rb index f1e4543809..b9af0c9562 100644 --- a/app/models/manageiq/providers/lenovo/physical_infra_manager/parser/network_device_parser.rb +++ b/app/models/manageiq/providers/lenovo/physical_infra_manager/parser/network_device_parser.rb @@ -110,7 +110,9 @@ def parse_physical_port(port) def parse_logical_port(port) { - :address => format_mac_address(port["addresses"]) + :address => format_mac_address(port["addresses"]), + :vlan_enabled => port["vnicMode"], + :vlan_key => port["logicalPortIndex"], } end