diff --git a/html/pages/device/routing/ipsec_tunnels.inc.php b/html/pages/device/routing/ipsec_tunnels.inc.php index 294564e045..2cde88559c 100644 --- a/html/pages/device/routing/ipsec_tunnels.inc.php +++ b/html/pages/device/routing/ipsec_tunnels.inc.php @@ -1,5 +1,10 @@ 'device', + 'device' => $device['device_id'], + 'tab' => 'routing', + 'proto' => 'ipsec_tunnels'); + print_optionbar_start(); echo("IPSEC Tunnels » "); @@ -7,36 +12,41 @@ echo("IPSEC Tunnels » "); $menu_options = array('basic' => 'Basic', ); +if(!isset($vars['view'])) { $vars['view'] = "basic"; } + +echo("VRFs » "); + +$menu_options = array('basic' => 'Basic', +# 'detail' => 'Detail', + ); + if (!$_GET['opta']) { $_GET['opta'] = "basic"; } $sep = ""; foreach ($menu_options as $option => $text) { - if ($_GET['optd'] == $option) { echo(""); } - echo('' . $text - . ''); - if ($_GET['optd'] == $option) { echo(""); } + if ($vars['view'] == $option) { echo(""); } + echo(generate_link($text, $link_array,array('view'=>$option))); + if ($vars['view'] == $option) { echo(""); } echo(" | "); } -unset($sep); - echo(' Graphs: '); -$graph_types = array("bits" => "Bits", - "pkts" => "Packets", - "errors" => "Errors"); +$graph_types = array("bits" => "Bits", + "pkts" => "Packets"); foreach ($graph_types as $type => $descr) { echo("$type_sep"); - if ($_GET['opte'] == $type) { echo(""); } - echo(''.$descr.''); - if ($_GET['opte'] == $type) { echo(""); } + if ($vars['graph'] == $type) { echo(""); } + echo(generate_link($descr, $link_array,array('view'=>'graphs','graph'=>$type))); + if ($vars['graph'] == $type) { echo(""); } $type_sep = " | "; } + print_optionbar_end(); echo("
"); @@ -53,23 +63,23 @@ echo(""); echo(""); echo(""); - if ($_GET['optd'] == "graphs") + if (isset($vars['graph'])) { echo(''); echo(" - "); + echo(" + + "); } echo(""); diff --git a/includes/polling/ports.inc.php b/includes/polling/ports.inc.php index 47cfaed566..79cbe8caf5 100755 --- a/includes/polling/ports.inc.php +++ b/includes/polling/ports.inc.php @@ -242,7 +242,7 @@ foreach ($ports as $port) { $this_port['ifVlan'] = $this_port['dot1qPvid']; } - # FIXME use $q_bridge_mib[$this_port['ifIndex'] to see if it is a trunk (>1 array count) + # FIXME use $q_bridge_mib[$this_port['ifIndex']] to see if it is a trunk (>1 array count) echo("VLAN == ".$this_port['ifVlan']);
" . $tunnel['local_addr'] . " » " . echo("" . $tunnel['tunnel_name'] . "" . $tunnel['tunnel_status'] . "
"); - $graph_type = "ipsectunnel_" . $_GET['opte']; + $graph_type = "ipsectunnel_" . $vars['graph']; -$graph_array['height'] = "100"; -$graph_array['width'] = "215"; -$graph_array['to'] = $config['time']['now']; -$graph_array['id'] = $tunnel['tunnel_id']; -$graph_array['type'] = $graph_type; + $graph_array['height'] = "100"; + $graph_array['width'] = "215"; + $graph_array['to'] = $config['time']['now']; + $graph_array['id'] = $tunnel['tunnel_id']; + $graph_array['type'] = $graph_type; -include("includes/print-graphrow.inc.php"); + include("includes/print-graphrow.inc.php"); - echo(" -