Project

General

Profile

Revision e809466b

IDe809466bb18334eb5e892a91ad2d7b8b494d3572
Parent 1be75264
Child 7225125e

Added by Francois POIROTTE about 7 years ago

Correction positionnement nom d'interface réseau

Si le champ "comment" était vide, alors un nom vide était donné à
l'interface dans le fichier de configuration généré.
Ceci empêchait ensuite le déploiement de la configuration.

Change-Id: I0f004b09da44dee2a8737174d2eed0340db46d22
Reviewed-on: https://vigilo-dev.si.c-s.fr/review/2371
Tested-by: Build system <>
Reviewed-by: Francois POIROTTE <>

View differences:

src/Vigilo/VigiloNetworkEquipment.php
114 114
            }
115 115

  
116 116
            $args       = array();
117
            $label      = isset($port->fields['comment']) ? $port->fields['comment'] : $port->getName();
117
            $label      = !empty($port->fields['comment']) ? $port->fields['comment'] : $port->getName();
118 118
            $ethport    = $ethport->find('networkports_id=' . $np['id']);
119 119
            foreach ($ethport as $rowEthPort) {
120 120
                if ($rowEthPort['speed']) {

Also available in: Unified diff