Keine Beschreibung

Jean Sumara Leopoldo 62c966930f Added a function to add timeOltScan or executeSnmp to NAS when we click on button to update the devices vor 5 Jahren
.gitlab 671e1feeb4 Directory .gitlab added vor 6 Jahren
Command e5b681266f Chequeo previo a deshabilitar/habilitar filtro soft_deleteable. vor 7 Jahren
EventListener 62c966930f Added a function to add timeOltScan or executeSnmp to NAS when we click on button to update the devices vor 5 Jahren
Interfaces 5ff7b53da7 Modificado solo DeviceListener para no enviar actualizaciones en postPersist o postUpdate de elementos softDelete. vor 7 Jahren
Resources 2ab9cef5cd traduccion Device-Bundle vor 6 Jahren
Services f801d90020 Se actualizo la definicion del servicio monolog handler vor 7 Jahren
Twig 44b9f6833d FD3-394 log dispositivos vor 7 Jahren
Utils 17a53335cc Fix nombre constant vor 7 Jahren
Validator 61a172c14a Agregado del setContainer para el phpunit vor 7 Jahren
keys b735725a63 Agregado drone vor 7 Jahren
.drone.yml c6801047c8 Agregado del paso de tags a gogs vor 7 Jahren
.gitlab-ci.yml d881d3bec8 Update .gitlab-ci.yml vor 5 Jahren
DeviceBundle.php 58393337ba Se renombro el bundle vor 8 Jahren
README.md fee905fe53 Update README.md vor 8 Jahren
composer.json 3332f266c8 composer.json edited online with Bitbucket vor 7 Jahren

README.md

DeviceBundle

Installation

composer.json:

"repositories": [
    {
        "type": "vcs",
        "url":  "ssh://git@infra.flowdat.com:222/VendorSoftwareFlowdat3/DeviceBundle.git",
        "options": {
                "local_pk": "./keys/bitbucket.id_rsa"
        }
    }
],
"require": {
    "ik/device-bundle": "dev-master"
},

app/AppKernel.php:

public function registerBundles()
{
    $bundles = [
        new DeviceBundle\DeviceBundle(),
    ];
    .
    .
}

app/config/config.yml:

imports:
    - { resource: "bundles/ik/device-bundle/parameters.yml" }
    - { resource: "@DeviceBundle/Resources/config/services.yml" }

app/config/bundles/ik/device-bundle/parameters.yml

parameters:
    device_check_url: 'http://127.0.0.1/base/app_dev.php/api/devices/check.json'
    device_post_url: 'http://127.0.0.1/base/app_dev.php/api/devices.json'
    device_delete_post_url: 'http://127.0.0.1/base/app_dev.php/api/device.json'

Validators

  • DeviceBundle\Validator\DeviceValidator: Validator que chequea si se puede agregar un dispositivo dependiendo de la licencia actual. Para agregarlo por ej en la entidad OLT:

use DeviceBundle\Validator\Constraints as ValidatorAssert;
use DeviceBundle\Interfaces\DeviceInterface;

/**
 * @ORM\Entity
 * @UniqueEntity("ip")
 * 
 * @ValidatorAssert\Device
 */
class OLT implements DeviceInterface