Revize 1492
Přidáno uživatelem Ondřej Fibich před více než 12 roky(ů)
freenetis/branches/network/application/controllers/ifaces.php | ||
---|---|---|
$vlan_form->dropdown('vlan_id')
|
||
->label('VLAN')
|
||
->options($vlans)
|
||
->rules('required')
|
||
->style('width:200px');
|
||
|
||
$vlan_form->dropdown('parent_iface_id')
|
||
->label('Parent interface')
|
||
->options($parent_ifaces)
|
||
->rules('required')
|
||
->style('width:200px');
|
||
}
|
||
|
||
... | ... | |
$iface->number = $form_data['number'];
|
||
$iface->port_mode = $form_data['port_mode'];
|
||
}
|
||
else if ($iface->type == Iface_Model::TYPE_VLAN)
|
||
|
||
$iface->save_throwable();
|
||
|
||
if ($iface->type == Iface_Model::TYPE_VLAN)
|
||
{
|
||
// @todo
|
||
$vlan_ifaces = new Ifaces_vlan_Model();
|
||
$vlan_ifaces->iface_id = $iface->id;
|
||
$vlan_ifaces->vlan_id = $form_data['vlan_id'];
|
||
$vlan_ifaces->save_throwable();
|
||
|
||
$iface_relationship = new Ifaces_relationship_Model();
|
||
$iface_relationship->iface_id = $iface->id;
|
||
$iface_relationship->parent_iface_id = $form_data['parent_iface_id'];
|
||
$iface_relationship->save_throwable();
|
||
}
|
||
else if ($iface->type == Iface_Model::TYPE_BRIDGE)
|
||
{
|
||
// @todo
|
||
}
|
||
|
||
$iface->save_throwable();
|
||
|
||
$iface->transaction_commit();
|
||
|
||
status::success('Interface has been successfully saved.');
|
Také k dispozici: Unified diff
Upravy:
- pridavani VLANu (#185)