Bug 1038550

Summary: [RFE] RHEV-M portal should highlight primary interface in bond configured using 'primary' option in custom mode.
Product: Red Hat Enterprise Virtualization Manager Reporter: Nikhil Gupta <ngupta>
Component: RFEsAssignee: Dominik Holler <dholler>
Status: CLOSED ERRATA QA Contact: Michael Burman <mburman>
Severity: low Docs Contact:
Priority: medium    
Version: unspecifiedCC: bazulay, danken, lpeer, mburman, myakove, nyechiel, rbalakri, srevivo, ykaul, ylavi
Target Milestone: ovirt-4.1.0-betaKeywords: FutureFeature
Target Release: ---Flags: nyechiel: Triaged+
gklein: testing_plan_complete+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
-
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-04-25 00:54:28 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Network RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Nikhil Gupta 2013-12-05 10:23:40 UTC
[RFE] RHEV-M portal should highlight primary interface in bond configured using 'primary' option in custom mode.

For example:

There are two NIC in bond0 - nic1 and nic2. In custom bond setting, nic1 is configured as primary, however on admin portal there is no way to differentiate between primary and other interface.

Can we add any special representation for primary interface in a bond?

Comment 7 Lior Vernia 2015-02-24 14:59:51 UTC
vdsm already reports this as part of the bond entry under the bondings dictionary, under the key 'active_slave' - all that remains is for engine to persist this information (likely as part of the vds_interface table) and for the GUI to somehow represent this in the host/interfaces subtab and in the Host Setup Networks dialog. I would also expose this information via REST.

Comment 9 Michael Burman 2016-11-06 07:43:28 UTC
- The active_slave property of the bond in modes that support it (active-backup(1), balance-alb(6) and balance-tlb(5)).  
This parameter is read only. Setting it will have no effect on the bond. It is retrieved from /sys/class/net/bondX/bonding/active_slave file on the system where the bond is located.

For example:

GET /ovirt-engine/api/hosts/123/nics/321

Will respond:

<host_nic href="/ovirt-engine/api/hosts/123/nics/321" id="321">
  ...
  <bonding>
    <slaves>
      <host_nic href="/ovirt-engine/api/hosts/123/nics/456" id="456" />
      ...
    </slaves>
    <active_slave href="/ovirt-engine/api/hosts/123/nics/456" id="456" />
  </bonding>
  ...
</host_nic>


- In the UI, the primary/active slave is shown in the 'Network Interfaces' subtab of the 'Hosts' main tab as a tool tip.

Comment 10 Michael Burman 2017-01-04 12:17:37 UTC
Verified on - 4.1.0-0.3.beta2.el7