[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?
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.
- 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.
Verified on - 4.1.0-0.3.beta2.el7