|
@@ -119,25 +119,6 @@ class CablemodemAdmin extends BaseAdmin
|
|
|
|
|
|
$this->parameters = array('from' => $from, 'to' => $to);
|
|
|
|
|
|
- /* $interface = $this->getSubject();
|
|
|
- $cmtsDeviceId = $interface->getCmtsDeviceId();
|
|
|
- $deviceServer = $interface->getDeviceServer();
|
|
|
-
|
|
|
- $em = $this->get("doctrine.orm.entity_manager");
|
|
|
-
|
|
|
- $cmts = $em->getRepository("StatsBundle:device")->findOneBy(array('deviceId' => $cmtsDeviceId, 'deviceServer'=>$deviceServer, 'deviceType' => 'CablemodemBundle\Entity\CMTS'));
|
|
|
- if($cmts) {
|
|
|
- $data = $cmts->jsonExtraData();
|
|
|
- $cmtsName = null;
|
|
|
- if(isset($data['name'])) $cmtsName = $data['name'];
|
|
|
- }
|
|
|
-
|
|
|
- $showMapper
|
|
|
- ->add('cmtsDeviceId', 'string', array('template' => 'StatsBundle:CmtsInterface:base_show_field_cmts.html.twig','cmtsName' => $cmtsName))
|
|
|
- ->add('ip')
|
|
|
- ->add('mac')
|
|
|
- //->add('jsonExtraData', 'string', array('template' => 'StatsBundle:CmtsInterface:field_extra_data.html.twig', 'extend' => 'base_show_field.html.twig'))
|
|
|
- ; */
|
|
|
}
|
|
|
|
|
|
/**
|