Browse Source

Se actualiza extraData a enviar al Base.

Maxi Schvindt 7 years ago
parent
commit
ffb0cdba25
1 changed files with 7 additions and 0 deletions
  1. 7 0
      src/CablemodemBundle/Entity/CMTS.php

+ 7 - 0
src/CablemodemBundle/Entity/CMTS.php

@@ -237,6 +237,8 @@ class CMTS implements DeviceInterface, TenancyIdTraitInterface, SoftDeleteInterf
             'name' => $this->name, 
             'host' => $this->host, 
             'modelId' => $this->model ? $this->model->getId() : null,
+            'mark' => null,
+            'library' => null,
             'snmpCommunity' => $this->snmpCommunity,
             'snmpVersion' => $this->snmpVersion,
             'docsVersion' => $this->docsVersion,
@@ -244,6 +246,11 @@ class CMTS implements DeviceInterface, TenancyIdTraitInterface, SoftDeleteInterf
             'timeScan' => $this->timeScan,
             'timeCmtsOctets' => $this->timeCmtsOctets,
         ];
+
+        if($this->model) {
+            $extraData['mark'] = $this->model->getMark();
+            $extraData['library'] = $this->model->getLibrary();
+        }
         
         return [
             'deviceType' => get_class($this),