<?php

$items = array();
$x = null;
$interNames['all ethernet'] = 'all ethernet';
$interNames['all ppp'] = 'all ppp';
$interNames['all vlan'] = 'all vlan';
$interNames['all wireless'] = 'all wireless';
?>
<?= $form->field($model, 'src_address_list')->dropDownList($addrlists); ?>
<?= $form->field($model, 'dst_address_list')->dropDownList($addrlists); ?>
<?= $form->field($model, 'layer7_protocol')->dropDownList($protocolNames); ?>
<?= $form->field($model, 'content'); ?>
<?= $form->field($model, 'per_connection_classifier')->label('Per Connection Clasifier'); ?>
<?= $form->field($model, 'src_mac_address')->label('SRC. MAC Address'); ?>
<?= $form->field($model, 'out_bridge_port')->dropDownList($interNames); ?>
<?= $form->field($model, 'in_bridge_port')->dropDownList($interNames); ?>
<?= $form->field($model, 'ipsec_policy')->dropDownList($items, ['options' => [$x => ['selected' => true]]]); ?>
<?= $form->field($model, 'ingress_priority')->label('Ingress Priority'); ?>
<?= $form->field($model, 'dscp')->label('DSCP'); ?>
<?= $form->field($model, 'packet_size')->label('Packet Size'); ?>
<?= $form->field($model, 'random'); ?>
<?=

$form->field($model, 'ipv4_options')->dropDownList([ '' => '',
    'any' => 'any',
    'loose-source-routing' => 'loose-source-routing',
    'no-record-route' => 'no-record-route',
    'no-router-alert' => 'no-router-alert',
    'no-source-routing' => 'no-source-routing',
    'no-timestamp' => 'no-timestamp',
    'none' => 'none',
    'record-route' => 'record-route',
    'router-alert' => 'router-alert',
    'strict-source-routing' => 'strict-source-routing',
    'timestamp' => 'timestamp',
]);
?>
<?= $form->field($model, 'ttl')->label('TTL'); ?>