Changeset 12632


Ignore:
Timestamp:
08/11/09 14:03:17 (4 years ago)
Author:
eko
Message:

zebra config added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/router/kromo/dd-wrt/Routing.asp

    r12629 r12632  
    124124                                                        <% nvram_else_selmatch("wk_mode","ospf","","<!--"); %> 
    125125                                                        <fieldset> 
    126                                                                 <legend><% tran("route.zebra_legend"); %></legend> 
     126                                                                <legend><% tran("route.ospf_legend"); %></legend> 
     127                                                                <div class="setting"> 
     128                                                                    <div class="label"><% tran("route.ospf_conf"); %></div> 
     129                                                                    <textarea cols="60" rows="4" id="ospfd_conf" name="ospfd_conf"></textarea> 
     130                                                                    <script type="text/javascript"> 
     131                                                                    //<![CDATA[ 
     132                                                                    var ospfd_conf = fix_cr( '<% nvram_get("ospfd_conf"); %>' ); 
     133                                                                    document.getElementById("ospfd_conf").value = ospfd_conf; 
     134                                                                    //]]> 
     135                                                                    </script> 
     136                                                                </div> 
    127137                                                                <div class="setting"> 
    128138                                                                    <div class="label"><% tran("route.zebra_legend"); %></div> 
     
    138148                                                                        <div class="label"><% tran("route.zebra_log"); %></div> 
    139149                                                                        <input class="spaceradio" type="radio" name="zebra_log" value="1" <% nvram_checked("zebra_log", "1"); %> /><% tran("share.enable"); %>&nbsp; 
    140                                                                         <input class="spaceradio" type="radio" name="tebra_log" value="0" <% nvram_checked("zebra_log", "0"); %> /><% tran("share.disable"); %> 
     150                                                                        <input class="spaceradio" type="radio" name="zebra_log" value="0" <% nvram_checked("zebra_log", "0"); %> /><% tran("share.disable"); %> 
    141151                                                                </div> 
    142152                                                        </fieldset><br /> 
    143                                                         <fieldset> 
    144                                                                 <legend><% tran("route.ospf_legend"); %></legend> 
    145                                                                 <div class="setting"> 
    146                                                                     <div class="label"><% tran("route.ospf_conf"); %></div> 
    147                                                                     <textarea cols="60" rows="4" id="ospfd_conf" name="ospfd_conf"></textarea> 
    148                                                                     <script type="text/javascript"> 
    149                                                                     //<![CDATA[ 
    150                                                                     var ospfd_conf = fix_cr( '<% nvram_get("ospfd_conf"); %>' ); 
    151                                                                     document.getElementById("ospfd_conf").value = ospfd_conf; 
    152                                                                     //]]> 
    153                                                                     </script> 
    154                                                                 </div> 
    155                                                         </fieldset> 
    156153                                                        <% nvram_else_selmatch("wk_mode","ospf","","-->"); %> 
    157                                                         <% nvram_else_selmatch("wk_mode","bgp","","<!--"); %> 
    158                                                         <fieldset> 
    159                                                                 <legend><% tran("route.zebra_legend"); %></legend> 
     154                                                        <% nvram_else_selmatch("wk_mode","bgp","","<!--"); %>                                    
     155                                                        <fieldset> 
     156                                                                <legend><% tran("route.bgp_legend"); %></legend> 
     157                                                                <div class="setting"> 
     158                                                                        <div class="label"><% tran("route.bgp_own_as"); %></div> 
     159                                                                        <input size="10" name="routing_bgp_as" value="<% nvram_get("routing_bgp_as"); %>" /> 
     160                                                                </div> 
     161                                                                <div class="setting"> 
     162                                                                        <div class="label"><% tran("route.bgp_ip"); %></div> 
     163                                                                        <input type="hidden" name="routing_bgp_neighbor_ip" value="0.0.0.0" /><input size="3" maxlength="3" name="routing_bgp_neighbor_ip_0" onblur="valid_range(this,0,255,route.bgp_ip)" class="num" value="<% get_single_ip("routing_bgp_neighbor_ip","0"); %>" />.<input size="3" maxlength="3" name="routing_bgp_neighbor_ip_1" onblur="valid_range(this,0,255,route.bgp_ip)" class="num" value="<% get_single_ip("routing_bgp_neighbor_ip","1"); %>" />.<input size="3" maxlength="3" name="routing_bgp_neighbor_ip_2" onblur="valid_range(this,0,255,route.bgp_ip)" class="num" value="<% get_single_ip("routing_bgp_neighbor_ip","2"); %>" />.<input size="3" maxlength="3" name="routing_bgp_neighbor_ip_3" onblur="valid_range(this,0,254,route.bgp_ip)" class="num" value="<% get_single_ip("routing_bgp_neighbor_ip","3"); %>" /> 
     164                                                                </div> 
     165                                                                <div class="setting"> 
     166                                                                        <div class="label"><% tran("route.bgp_as"); %></div> 
     167                                                                        <input size="10" name="routing_bgp_neighbor_as" value="<% nvram_get("routing_bgp_neighbor_as"); %>" /> 
     168                                                                </div> 
    160169                                                                <div class="setting"> 
    161170                                                                    <div class="label"><% tran("route.zebra_legend"); %></div> 
     
    171180                                                                        <div class="label"><% tran("route.zebra_log"); %></div> 
    172181                                                                        <input class="spaceradio" type="radio" name="zebra_log" value="1" <% nvram_checked("zebra_log", "1"); %> /><% tran("share.enable"); %>&nbsp; 
    173                                                                         <input class="spaceradio" type="radio" name="tebra_log" value="0" <% nvram_checked("zebra_log", "0"); %> /><% tran("share.disable"); %> 
    174                                                                 </div> 
    175                                                         </fieldset><br />                                                
    176                                                         <fieldset> 
    177                                                                 <legend><% tran("route.bgp_legend"); %></legend> 
    178                                                                 <div class="setting"> 
    179                                                                         <div class="label"><% tran("route.bgp_own_as"); %></div> 
    180                                                                         <input size="10" name="routing_bgp_as" value="<% nvram_get("routing_bgp_as"); %>" /> 
    181                                                                 </div> 
    182                                                                 <div class="setting"> 
    183                                                                         <div class="label"><% tran("route.bgp_ip"); %></div> 
    184                                                                         <input type="hidden" name="routing_bgp_neighbor_ip" value="0.0.0.0" /><input size="3" maxlength="3" name="routing_bgp_neighbor_ip_0" onblur="valid_range(this,0,255,route.bgp_ip)" class="num" value="<% get_single_ip("routing_bgp_neighbor_ip","0"); %>" />.<input size="3" maxlength="3" name="routing_bgp_neighbor_ip_1" onblur="valid_range(this,0,255,route.bgp_ip)" class="num" value="<% get_single_ip("routing_bgp_neighbor_ip","1"); %>" />.<input size="3" maxlength="3" name="routing_bgp_neighbor_ip_2" onblur="valid_range(this,0,255,route.bgp_ip)" class="num" value="<% get_single_ip("routing_bgp_neighbor_ip","2"); %>" />.<input size="3" maxlength="3" name="routing_bgp_neighbor_ip_3" onblur="valid_range(this,0,254,route.bgp_ip)" class="num" value="<% get_single_ip("routing_bgp_neighbor_ip","3"); %>" /> 
    185                                                                 </div> 
    186                                                                 <div class="setting"> 
    187                                                                         <div class="label"><% tran("route.bgp_as"); %></div> 
    188                                                                         <input size="10" name="routing_bgp_neighbor_as" value="<% nvram_get("routing_bgp_neighbor_as"); %>" /> 
     182                                                                        <input class="spaceradio" type="radio" name="zebra_log" value="0" <% nvram_checked("zebra_log", "0"); %> /><% tran("share.disable"); %> 
    189183                                                                </div> 
    190184                                                        </fieldset><br/>                                                         
     
    206200                                                                        <div class="label"><% tran("route.zebra_log"); %></div> 
    207201                                                                        <input class="spaceradio" type="radio" name="zebra_log" value="1" <% nvram_checked("zebra_log", "1"); %> /><% tran("share.enable"); %>&nbsp; 
    208                                                                         <input class="spaceradio" type="radio" name="tebra_log" value="0" <% nvram_checked("zebra_log", "0"); %> /><% tran("share.disable"); %> 
     202                                                                        <input class="spaceradio" type="radio" name="zebra_log" value="0" <% nvram_checked("zebra_log", "0"); %> /><% tran("share.disable"); %> 
    209203                                                                </div> 
    210204                                                        </fieldset><br />                                                
Note: See TracChangeset for help on using the changeset viewer.