Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 1631

Přidáno uživatelem Michal Kliment před asi 12 roky(ů)

Oprava exportu zarizeni (#263).

Zobrazit rozdíly:

freenetis/branches/testing/application/controllers/devices.php
// definition of array for data
$device_ifaces = array
(
Iface_Model::TYPE_WIRELESS => array(),
Iface_Model::TYPE_ETHERNET => array(),
Iface_Model::TYPE_VLAN => array(),
Iface_Model::TYPE_WIRELESS => array(),
Iface_Model::TYPE_ETHERNET => array(),
Iface_Model::TYPE_PORT => array(),
Iface_Model::TYPE_BRIDGE => array(),
Iface_Model::TYPE_VLAN => array(),
Iface_Model::TYPE_INTERNAL => array(),
Iface_Model::TYPE_VIRTUAL_AP => array()
);
$device_wireless_iface_devices = array();
$device_ip_addresses = array();
freenetis/branches/testing/application/views/device_templates/mikrotik.php
<?php if(count($device_ifaces[Iface_Model::TYPE_WIRELESS])): ?>
/interface wireless
<?php foreach ($device_ifaces[Iface_Model::TYPE_WIRELESS] as $iface_id => $iface)
{
......
add disabled=no interface="<?php echo $iface->name ?>" forwarding=no mac-address=<?php echo $device_wireless_iface_device->mac ?> comment="<?php echo text::cs_utf2ascii(text::object_format($device_wireless_iface_device, "ID {member_id} - {member_name} - {name} (IP {ip_address})")) ?>"
<?php endforeach ?>
<?php endforeach ?>
<?php endif ?>
/interface ethernet
<?php foreach ($device_ifaces[Iface_Model::TYPE_ETHERNET] as $iface_id => $iface): ?>
set <?php echo $iface_id ?> arp=enabled auto-negotiation=yes disabled=no full-duplex=yes mac-address=<?php echo $iface->mac ?> name="<?php echo $iface->name ?>"

Také k dispozici: Unified diff