예제 #1
0
static void ripngd_install_INTERFACE_VLAN_NODE_cmd(void)
{
	install_element(INTERFACE_VLAN_NODE,&ipv6_ripng_split_horizon_cmd_ripngd_plat);
	install_element(INTERFACE_VLAN_NODE,&ipv6_ripng_split_horizon_poisoned_reverse_cmd_ripngd_plat);
	install_element(INTERFACE_VLAN_NODE,&no_ipv6_ripng_split_horizon_cmd_ripngd_plat);
	install_element(INTERFACE_VLAN_NODE,&no_ipv6_ripng_split_horizon_poisoned_reverse_cmd_ripngd_plat);
}
예제 #2
0
/* CONFIG_NODE */
static void ripd_install_CONFIG_NODE_cmd(void)
{
	install_element(CONFIG_NODE,&no_router_rip_cmd_ripd_plat);
	//install_element(CONFIG_NODE,&key_chain_cmd_ripd_plat);
	install_element(CONFIG_NODE,&no_key_chain_cmd_ripd_plat);
	install_element(CONFIG_NODE,&router_zebra_cmd_ripd_plat);
	install_element(CONFIG_NODE,&no_router_zebra_cmd_ripd_plat);
}
예제 #3
0
void cli_post_init(void)
{
    /* ping CLI commands */
    install_element (ENABLE_NODE, &cli_ping_cmd);
    install_element (ENABLE_NODE, &cli_ping6_cmd);

    /* Traceroute CLI commands */
    install_element (ENABLE_NODE, &cli_traceroute_cmd);
    install_element (ENABLE_NODE, &cli_traceroute6_cmd);
    install_element (ENABLE_NODE, &cli_traceroute_ipoption_cmd);
}
예제 #4
0
int
ospf6_dump_install (char *name, char *help)
{
  struct cmd_element *cmd;
  char string[256];
  char helpstring[256];

  if (dump_size + 1 >= DUMP_MAX)
    return -1;

  ospf6_dump[dump_size] = malloc (sizeof (struct ospf6_dump));
  if (ospf6_dump[dump_size] == NULL)
    return -1;
  memset (ospf6_dump[dump_size], 0, sizeof (struct ospf6_dump));

  ospf6_dump[dump_size]->name = strdup (name);

  cmd = &ospf6_dump[dump_size]->cmd[CMD_SHOW];
  snprintf (string, sizeof (string), "show debugging ospf6 %s", name);
  snprintf (helpstring, sizeof (helpstring), "%s%s%s%s",
            SHOW_STR, DEBUG_STR, OSPF6_STR, help);
  memset (cmd, 0, sizeof (struct cmd_element));
  cmd->string = strdup (string);
  cmd->func = ospf6_dump_show;
  cmd->doc = strdup (helpstring);
  install_element (VIEW_NODE, cmd);
  install_element (ENABLE_NODE, cmd);

  cmd = &ospf6_dump[dump_size]->cmd[CMD_ENABLE];
  snprintf (string, sizeof (string), "debug ospf6 %s", name);
  snprintf (helpstring, sizeof (helpstring), "%s%s%s",
            DEBUG_STR, OSPF6_STR, help);
  memset (cmd, 0, sizeof (struct cmd_element));
  cmd->string = strdup (string);
  cmd->func = ospf6_dump_enable;
  cmd->doc = strdup (helpstring);
  install_element (CONFIG_NODE, cmd);

  cmd = &ospf6_dump[dump_size]->cmd[CMD_DISABLE];
  snprintf (string, sizeof (string), "no debug ospf6 %s", name);
  snprintf (helpstring, sizeof (helpstring), "%s%s%s%s",
            NO_STR, DEBUG_STR, OSPF6_STR, help);
  memset (cmd, 0, sizeof (struct cmd_element));
  cmd->string = strdup (string);
  cmd->func = ospf6_dump_disable;
  cmd->doc = strdup (helpstring);
  install_element (CONFIG_NODE, cmd);

  return dump_size++;
}
예제 #5
0
/* Allocate and initialize interface vector. */
void
stp_if_init (void)
{
  /* Default initial size of interface vector. */
  if_init();
  if_add_hook (IF_NEW_HOOK, stp_interface_new_hook);
  if_add_hook (IF_DELETE_HOOK, stp_interface_delete_hook);
  
  /* Install interface node. */
  install_node (&interface_node, stp_interface_config_write);

  /* Install commands. */
  install_element (CONFIG_NODE, &interface_cmd);
  install_element (CONFIG_NODE, &no_interface_cmd);
  install_default (INTERFACE_NODE);
  install_element (INTERFACE_NODE, &interface_desc_cmd);
  install_element (INTERFACE_NODE, &no_interface_desc_cmd);
}
예제 #6
0
/*注册MPLS LDP 配置命令*/
void ldp_vty_ldp_cmd_reg()
{
    install_element(INTERFACE_NODE, &mpls_vty_if_hello_hold_cmd);
    install_element(INTERFACE_NODE, &mpls_vty_if_no_hello_hold_cmd);
    install_element(INTERFACE_NODE, &mpls_vty_if_keepalive_hold_cmd);
    install_element(INTERFACE_NODE, &mpls_vty_if_no_keepalive_hold_cmd);   

    install_element(INTERFACE_VLAN_NODE, &mpls_vty_if_hello_hold_cmd);
    install_element(INTERFACE_VLAN_NODE, &mpls_vty_if_no_hello_hold_cmd);
    install_element(INTERFACE_VLAN_NODE, &mpls_vty_if_keepalive_hold_cmd);
    install_element(INTERFACE_VLAN_NODE, &mpls_vty_if_no_keepalive_hold_cmd);   
}
예제 #7
0
void vty_cli_reg(void)
{
    /*ldpd进程不支持vrf,因此当vrfid不为零时以下命令及daemon不需要注册 bug3417 by Tangyongxiang*/
	if(vty_get_current_vrfid())
	{
       return;
	}
    vtysh_install_node(&mpls_node, NULL, NULL);
    
    vtysh_install_node(&ldp_node, NULL, NULL);
    vtysh_install_node(&l2vpn_node, NULL, NULL);
    vtysh_install_node(&vsi_node, NULL, NULL);
    ldp_vty_global_cmd_reg();

    ldp_vty_ldp_cmd_reg();

    ip_prefix_list_cmd_init(VTYSH_LDPD,AFI_IP);

    ldp_vty_route_map_reg();
	
    rsvp_vty_cli_reg();
	
	install_element(VIEW_NODE,&mpls_vty_debug_ldp_cmd);
	install_element(VIEW_NODE,&mpls_vty_no_debug_ldp_cmd);
	install_element(VIEW_NODE,&mpls_vty_show_debugging_cmd);
    install_element(VIEW_NODE,&mpls_vty_debug_l2vpn_cmd);
	install_element(VIEW_NODE,&mpls_vty_no_debug_l2vpn_cmd);
	install_element(VIEW_NODE,&mpls_vty_show_debug_l2vpn_cmd);
	
    cli_install_daemon(VTYSH_INDEX_LDPD, "ldpd", "/var/usock/.ldpd");
}
예제 #8
0
void ldp_vty_route_map_reg()
{
    install_element (RMAP_NODE, &match_ip_address_cmd);
    install_element (RMAP_NODE, &no_match_ip_address_cmd);
    install_element (RMAP_NODE, &no_match_ip_address_val_cmd);
    install_element (RMAP_NODE, &match_ip_address_prefix_list_cmd);
    install_element (RMAP_NODE, &no_match_ip_address_prefix_list_cmd);
    install_element (RMAP_NODE, &no_match_ip_address_prefix_list_val_cmd);
}
예제 #9
0
void test_init(void)
{
  install_element (ENABLE_NODE, &cmd0_cmd);
  install_element (ENABLE_NODE, &cmd1_cmd);
  install_element (ENABLE_NODE, &cmd2_cmd);
  install_element (ENABLE_NODE, &cmd3_cmd);
  install_element (ENABLE_NODE, &cmd4_cmd);
  install_element (ENABLE_NODE, &cmd5_cmd);
  install_element (ENABLE_NODE, &cmd6_cmd);
  install_element (ENABLE_NODE, &cmd7_cmd);
  install_element (ENABLE_NODE, &cmd8_cmd);
  install_element (ENABLE_NODE, &cmd9_cmd);
  install_element (ENABLE_NODE, &cmd10_cmd);
  install_element (ENABLE_NODE, &cmd11_cmd);
  install_element (ENABLE_NODE, &cmd12_cmd);
  install_element (ENABLE_NODE, &cmd13_cmd);
}
예제 #10
0
/*注册MPLS 全局配置命令*/
void ldp_vty_global_cmd_reg()
{
    install_element(CONFIG_NODE, &mpls_vty_mpls_cmd);
    install_element(CONFIG_NODE, &mpls_vty_no_mpls_cmd);    
    
    install_element(VIEW_NODE, &mpls_vty_show_ldp_param_cmd);
    install_element(VIEW_NODE, &mpls_vty_show_ldp_peer_cmd);
    install_element(VIEW_NODE, &mpls_vty_show_ldp_all_peer_cmd);
	install_element(VIEW_NODE, &mpls_vty_show_ldp_adjacency_cmd);
    install_element(VIEW_NODE, &mpls_vty_show_ldp_bind_cmd);    
    install_element(VIEW_NODE, &mpls_vty_show_ldp_bind_ip_cmd);
    install_element(VIEW_NODE, &mpls_vty_show_mpls_interface_cmd);
    install_element(VIEW_NODE, &mpls_vty_show_mpls_interface_all_cmd);
    install_element(VIEW_NODE, &mpls_vty_show_mpls_label_range_cmd);
    install_element(VIEW_NODE, &mpls_vty_show_memory_type_cmd);
    install_element(VIEW_NODE, &mpls_vty_show_mpls_ilm_binding_cmd);
    install_element(VIEW_NODE, &mpls_vty_show_mpls_vpws_cmd);    
    install_element(VIEW_NODE, &mpls_vty_show_vsi_verbose_cmd);
    install_element(VIEW_NODE, &mpls_vty_show_vpls_connect_cmd);
    install_element(VIEW_NODE, &mpls_vty_show_vpls_fib_cmd);
    install_element(VIEW_NODE, &mpls_vty_show_vpls_all_fib_cmd);
    install_element(VIEW_NODE, &mpls_vty_graceful_restart_show_cmd);

    install_element(MPLS_NODE, &mpls_vty_ldp_cmd);
    install_element(MPLS_NODE, &mpls_vty_no_ldp_cmd);
    install_element(MPLS_NODE, &mpls_vty_cfg_mpls_static_ftn_binding_cmd);
    install_element(MPLS_NODE, &mpls_vty_no_mpls_static_ftn_binding_cmd);
    install_element(MPLS_NODE, &mpls_vty_no_mpls_static_ftn_special_bind_cmd);
    
    install_element(MPLS_NODE, &mpls_vty_cfg_mpls_static_ilm_binding_cmd);
    install_element(MPLS_NODE, &mpls_vty_cancel_mpls_static_ilm_binding_cmd);
    install_element(MPLS_NODE, &mpls_vty_mpls_l2vpn_cmd);
    install_element(MPLS_NODE, &mpls_vty_no_mpls_l2vpn_cmd);
    
    install_element(LDP_NODE, &mpls_vty_network_IFP_cmd);
    install_element(LDP_NODE, &mpls_vty_no_network_IFP_cmd);
    install_element(LDP_NODE, &mpls_vty_lsr_id_cmd);
    install_element(LDP_NODE, &mpls_vty_no_lsr_id_cmd);
    //install_element(LDP_NODE, &mpls_vty_dynamic_label_range_cmd);
    install_element(LDP_NODE, &mpls_vty_ldp_redistribute_cmd);
    install_element(LDP_NODE, &mpls_vty_ldp_redistribute_route_map_cmd);
    install_element(LDP_NODE, &mpls_vty_ldp_no_redistribute_cmd);
    install_element(LDP_NODE, &mpls_vty_set_md5_cmd);
    install_element(LDP_NODE, &mpls_vty_unset_md5_cmd);
    install_element(LDP_NODE, &mpls_vty_graceful_restart_cmd);
    install_element(LDP_NODE, &no_mpls_vty_graceful_restart_cmd);
    install_element(LDP_NODE, &mpls_vty_graceful_restart_recotime_cmd);
    install_element(LDP_NODE, &no_mpls_vty_graceful_restart_recotime_cmd);
    install_element(LDP_NODE, &mpls_vty_graceful_restart_recntime_cmd);
    install_element(LDP_NODE, &no_mpls_vty_graceful_restart_recntime_cmd);
    install_element(LDP_NODE, &mpls_ldp_remote_peer_cmd);
    install_element(LDP_NODE, &mpls_ldp_no_remote_peer_cmd);
    
    install_element(L2VPN_NODE, &mpls_vty_mpls_l2vpn_svc_cmd);
    install_element(L2VPN_NODE, &mpls_vty_mpls_no_l2vpn_svc_cmd);
    install_element(L2VPN_NODE, &mpls_vty_cfg_vsi_id_cmd);
    install_element(L2VPN_NODE, &mpls_vty_no_vsi_id_cmd); 
    install_element(L2VPN_NODE, &mpls_ldp_martini_l2vpn_cmd);
    install_element(L2VPN_NODE, &mpls_ldp_no_martini_l2vpn_cmd);
    install_element(L2VPN_NODE, &mpls_vty_mpls_l2vpn_ccc_local_cmd);
    install_element(L2VPN_NODE, &mpls_vty_mpls_l2vpn_ccc_remote_cmd);
    install_element(L2VPN_NODE, &mpls_vty_mpls_no_l2vpn_ccc_cmd);
    install_element(L2VPN_NODE, &mpls_vty_vpls_all_mac_del_cmd);
    
    install_element(VSI_NODE, &mpls_vty_vsi_remote_peer_cmd);
    install_element(VSI_NODE, &mpls_vty_no_vsi_remote_peer_cmd);
    install_element(VSI_NODE, &mpls_vty_bind_ac_if_cmd);
    install_element(VSI_NODE, &mpls_vty_no_bind_ac_if_cmd);
    install_element(VSI_NODE, &mpls_vty_vpls_mac_del_cmd);
    install_element(VSI_NODE, &mpls_vty_vpls_mac_auto_enable_cmd);
    install_element(VSI_NODE, &mpls_vty_vpls_mac_auto_disable_cmd);
    install_element(VSI_NODE, &mpls_vty_vpls_mac_withdraw_enable_cmd);
    install_element(VSI_NODE, &mpls_vty_vpls_mac_withdraw_disable_cmd);
    install_element(VSI_NODE, &mpls_vty_vpls_mac_agtime_cmd);
}
예제 #11
0
void vty_cli_reg(void)
{
    /*cfc进程不支持vrf,因此当vrfid不为零时以下命令及daemon不需要注册 bug3417 by Tangyongxiang*/
	if(vty_get_current_vrfid())
	{
       return;
	}
	
    vtysh_install_node (&operator_node, NULL, NULL);
    install_passwd_element (CONFIG_NODE, &vtysh_enter_operator_node_cmd, NULL);
	
	cli_install_daemon(VTYSH_INDEX_OPERATOR, "cfc", CFC_PATH);	
	install_element(OPERATOR_NODE, &cfc_show_stat_cmd_vtysh_plat);
	install_element(OPERATOR_NODE, &cfc_set_flux_cmd_vtysh_plat);
	install_element(OPERATOR_NODE, &cfc_disable_cmd_vtysh_plat);
	install_element(OPERATOR_NODE, &cfc_cf_cmd_nm_unitcode_cmd_vtysh_plat);
	install_element(OPERATOR_NODE, &cfc_cf_cmd_show_nm_unitcode_cmd_vtysh_plat);        
	install_element(OPERATOR_NODE, &cfc_cf_cmd_nm_svrip_cmd_vtysh_plat);        
	install_element(OPERATOR_NODE, &cfc_cf_cmd_show_nm_svrip_cmd_vtysh_plat); 
	install_element(OPERATOR_NODE, &cfc_cf_cmd_nm_rmtport_cmd_vtysh_plat);
	install_element(OPERATOR_NODE, &cfc_cf_cmd_show_nm_rmtport_cmd_vtysh_plat);
	install_element(OPERATOR_NODE, &cfc_cf_cmd_set_maxnum_cmd_vtysh_plat);
	install_element(OPERATOR_NODE, &cfc_cf_cmd_show_user_limit_cmd_vtysh_plat);
	install_element(OPERATOR_NODE, &cfc_cf_cmd_close_user_limit_cmd_vtysh_plat);
	install_element(OPERATOR_NODE, &cfc_cf_cmd_set_privatenet_cmd_vtysh_plat);
	install_element(OPERATOR_NODE, &cfc_cf_cmd_del_privatenet_cmd_vtysh_plat);
	install_element(OPERATOR_NODE, &cfc_cf_cmd_show_privatenet_cmd_vtysh_plat);		
	
}
예제 #12
0
/* RMAP_NODE */
static void ripngd_install_RMAP_NODE_cmd(void)
{
	install_element(RMAP_NODE,&match_interface_cmd_ripngd_plat);
	install_element(RMAP_NODE,&no_match_interface_cmd_ripngd_plat);
	install_element(RMAP_NODE,&no_match_interface_val_cmd_ripngd_plat);
	install_element(RMAP_NODE,&match_metric_cmd_ripngd_plat);
	install_element(RMAP_NODE,&no_match_metric_cmd_ripngd_plat);
	install_element(RMAP_NODE,&no_match_metric_val_cmd_ripngd_plat);
	install_element(RMAP_NODE,&match_tag_cmd_ripngd_plat);
	install_element(RMAP_NODE,&no_match_tag_cmd_ripngd_plat);
	install_element(RMAP_NODE,&no_match_tag_val_cmd_ripngd_plat);
	install_element(RMAP_NODE,&set_metric_cmd_ripngd_plat);
	install_element(RMAP_NODE,&set_metric_addsub_cmd_ripngd_plat);
	install_element(RMAP_NODE,&no_set_metric_val_cmd_ripngd_plat);
	install_element(RMAP_NODE,&set_tag_cmd_ripngd_plat);
	install_element(RMAP_NODE,&no_set_tag_cmd_ripngd_plat);
	install_element(RMAP_NODE,&no_set_tag_val_cmd_ripngd_plat);
	install_element(RMAP_NODE,&set_ipv6_nexthop_local_cmd_ripngd_plat);
	install_element(RMAP_NODE,&no_set_ipv6_nexthop_local_cmd_ripngd_plat);
}
예제 #13
0
/* VIEW_NODE */
static void ripd_install_VIEW_NODE_cmd(void)
{
	install_element(VIEW_NODE,&show_ip_rip_cmd_ripd_plat);
	install_element(VIEW_NODE,&show_ip_rip_status_cmd_ripd_plat);
	install_element(VIEW_NODE,&show_debugging_rip_cmd_ripd_plat);
	install_element(VIEW_NODE,&debug_rip_events_cmd_ripd_plat);
	install_element(VIEW_NODE,&debug_rip_packet_cmd_ripd_plat);
	install_element(VIEW_NODE,&debug_rip_packet_direct_cmd_ripd_plat);
	install_element(VIEW_NODE,&debug_rip_packet_detail_cmd_ripd_plat);
	install_element(VIEW_NODE,&debug_rip_zebra_cmd_ripd_plat);
	install_element(VIEW_NODE,&no_debug_rip_events_cmd_ripd_plat);
	install_element(VIEW_NODE,&no_debug_rip_packet_cmd_ripd_plat);
	install_element(VIEW_NODE,&no_debug_rip_packet_direct_cmd_ripd_plat);
	install_element(VIEW_NODE,&no_debug_rip_zebra_cmd_ripd_plat);
    install_element(VIEW_NODE,&show_mem_info_plat);
    install_element(VIEW_NODE,&debug_mem_plat);
    install_element(VIEW_NODE,&no_debug_mem_plat);
}
예제 #14
0
/* VIEW_NODE */
static void ripngd_install_VIEW_NODE_cmd(void)
{
	install_element(VIEW_NODE,&show_debugging_ripng_cmd_ripngd_plat);
	install_element(VIEW_NODE,&debug_ripng_events_cmd_ripngd_plat);
	install_element(VIEW_NODE,&debug_ripng_packet_cmd_ripngd_plat);
	install_element(VIEW_NODE,&debug_ripng_packet_direct_cmd_ripngd_plat);
	install_element(VIEW_NODE,&debug_ripng_packet_detail_cmd_ripngd_plat);
	install_element(VIEW_NODE,&debug_ripng_zebra_cmd_ripngd_plat);
	install_element(VIEW_NODE,&no_debug_ripng_events_cmd_ripngd_plat);
	install_element(VIEW_NODE,&no_debug_ripng_packet_cmd_ripngd_plat);
	install_element(VIEW_NODE,&no_debug_ripng_packet_direct_cmd_ripngd_plat);
	install_element(VIEW_NODE,&no_debug_ripng_zebra_cmd_ripngd_plat);
	install_element(VIEW_NODE,&show_ipv6_ripng_cmd_ripngd_plat);
	install_element(VIEW_NODE,&show_ipv6_ripng_status_cmd_ripngd_plat);
	install_element(VIEW_NODE,&show_ipv6_protocols_cmd_ripngd_plat);
}
예제 #15
0
/* RIP_NODE */
static void ripd_install_RIP_NODE_cmd(void)
{
	install_element(RIP_NODE,&rip_version_cmd_ripd_plat);
	install_element(RIP_NODE,&no_rip_version_cmd_ripd_plat);
	install_element(RIP_NODE,&no_rip_version_val_cmd_ripd_plat);
	install_element(RIP_NODE,&rip_default_metric_cmd_ripd_plat);
	install_element(RIP_NODE,&no_rip_default_metric_cmd_ripd_plat);
	install_element(RIP_NODE,&no_rip_default_metric_val_cmd_ripd_plat);
	install_element(RIP_NODE,&rip_timers_cmd_ripd_plat);
	install_element(RIP_NODE,&no_rip_timers_cmd_ripd_plat);
	install_element(RIP_NODE,&no_rip_timers_val_cmd_ripd_plat);
	install_element(RIP_NODE,&rip_route_cmd_ripd_plat);
	install_element(RIP_NODE,&no_rip_route_cmd_ripd_plat);
	install_element(RIP_NODE,&rip_distance_cmd_ripd_plat);
	install_element(RIP_NODE,&no_rip_distance_cmd_ripd_plat);
	install_element(RIP_NODE,&rip_distance_source_cmd_ripd_plat);
	install_element(RIP_NODE,&no_rip_distance_source_cmd_ripd_plat);
	install_element(RIP_NODE,&rip_distance_source_access_list_cmd_ripd_plat);
	install_element(RIP_NODE,&no_rip_distance_source_access_list_cmd_ripd_plat);
	install_element(RIP_NODE,&rip_network_cmd_ripd_plat);
	install_element(RIP_NODE,&no_rip_network_cmd_ripd_plat);
	install_element(RIP_NODE,&rip_neighbor_cmd_ripd_plat);
	install_element(RIP_NODE,&no_rip_neighbor_cmd_ripd_plat);
	install_element(RIP_NODE,&rip_passive_interface_cmd_ripd_plat);
	install_element(RIP_NODE,&no_rip_passive_interface_cmd_ripd_plat);
	install_element(RIP_NODE,&rip_offset_list_cmd_ripd_plat);
	install_element(RIP_NODE,&rip_offset_list_ifname_cmd_ripd_plat);
	install_element(RIP_NODE,&no_rip_offset_list_cmd_ripd_plat);
	install_element(RIP_NODE,&no_rip_offset_list_ifname_cmd_ripd_plat);
	install_element(RIP_NODE,&rip_redistribute_type_cmd_ripd_plat);
	install_element(RIP_NODE,&rip_redistribute_type_routemap_cmd_ripd_plat);
	install_element(RIP_NODE,&rip_redistribute_type_metric_cmd_ripd_plat);
	install_element(RIP_NODE,&rip_redistribute_type_metric_routemap_cmd_ripd_plat);
	install_element(RIP_NODE,&no_rip_redistribute_type_cmd_ripd_plat);
	install_element(RIP_NODE,&no_rip_redistribute_type_routemap_cmd_ripd_plat);
	install_element(RIP_NODE,&no_rip_redistribute_type_metric_cmd_ripd_plat);
	install_element(RIP_NODE,&no_rip_redistribute_type_metric_routemap_cmd_ripd_plat);
	install_element(RIP_NODE,&rip_default_information_originate_cmd_ripd_plat);
	install_element(RIP_NODE,&no_rip_default_information_originate_cmd_ripd_plat);
}
예제 #16
0
/* CONFIG_NODE */
static void ripngd_install_CONFIG_NODE_cmd(void)
{
	install_element(CONFIG_NODE,&router_zebra_cmd_ripngd_plat);
	install_element(CONFIG_NODE,&no_router_zebra_cmd_ripngd_plat);
}
예제 #17
0
/* RIPNG_NODE */
static void ripngd_install_RIPNG_NODE_cmd(void)
{
	install_element(RIPNG_NODE,&ripng_route_cmd_ripngd_plat);
	install_element(RIPNG_NODE,&no_ripng_route_cmd_ripngd_plat);
	install_element(RIPNG_NODE,&ripng_aggregate_address_cmd_ripngd_plat);
	install_element(RIPNG_NODE,&no_ripng_aggregate_address_cmd_ripngd_plat);
	install_element(RIPNG_NODE,&ripng_default_metric_cmd_ripngd_plat);
	install_element(RIPNG_NODE,&no_ripng_default_metric_cmd_ripngd_plat);
	install_element(RIPNG_NODE,&no_ripng_default_metric_val_cmd_ripngd_plat);
	install_element(RIPNG_NODE,&ripng_timers_cmd_ripngd_plat);
	install_element(RIPNG_NODE,&no_ripng_timers_cmd_ripngd_plat);
	install_element(RIPNG_NODE,&no_ripng_timers_val_cmd_ripngd_plat);
	install_element(RIPNG_NODE,&ripng_default_information_originate_cmd_ripngd_plat);
	install_element(RIPNG_NODE,&no_ripng_default_information_originate_cmd_ripngd_plat);
	install_element(RIPNG_NODE,&ripng_network_cmd_ripngd_plat);
	install_element(RIPNG_NODE,&no_ripng_network_cmd_ripngd_plat);
	install_element(RIPNG_NODE,&ripng_passive_interface_cmd_ripngd_plat);
	install_element(RIPNG_NODE,&no_ripng_passive_interface_cmd_ripngd_plat);
	install_element(RIPNG_NODE,&ripng_offset_list_cmd_ripngd_plat);
	install_element(RIPNG_NODE,&ripng_offset_list_ifname_cmd_ripngd_plat);
	install_element(RIPNG_NODE,&no_ripng_offset_list_cmd_ripngd_plat);
	install_element(RIPNG_NODE,&no_ripng_offset_list_ifname_cmd_ripngd_plat);
	install_element(RIPNG_NODE,&ripng_redistribute_ripng_cmd_ripngd_plat);
	install_element(RIPNG_NODE,&no_ripng_redistribute_ripng_cmd_ripngd_plat);
	install_element(RIPNG_NODE,&ripng_redistribute_type_cmd_ripngd_plat);
	install_element(RIPNG_NODE,&no_ripng_redistribute_type_cmd_ripngd_plat);
	install_element(RIPNG_NODE,&ripng_redistribute_type_metric_cmd_ripngd_plat);
	install_element(RIPNG_NODE,&no_ripng_redistribute_type_metric_cmd_ripngd_plat);
	install_element(RIPNG_NODE,&ripng_redistribute_type_routemap_cmd_ripngd_plat);
	install_element(RIPNG_NODE,&no_ripng_redistribute_type_routemap_cmd_ripngd_plat);
	install_element(RIPNG_NODE,&ripng_redistribute_type_metric_routemap_cmd_ripngd_plat);
	install_element(RIPNG_NODE,&no_ripng_redistribute_type_metric_routemap_cmd_ripngd_plat);
}
예제 #18
0
static void ripd_install_INTERFACE_VLAN_NODE_cmd(void)
{
	install_element(INTERFACE_VLAN_NODE,&ip_rip_send_version_cmd_ripd_plat);
	install_element(INTERFACE_VLAN_NODE,&ip_rip_send_version_1_cmd_ripd_plat);
	install_element(INTERFACE_VLAN_NODE,&ip_rip_send_version_2_cmd_ripd_plat);
	install_element(INTERFACE_VLAN_NODE,&no_ip_rip_send_version_cmd_ripd_plat);
	install_element(INTERFACE_VLAN_NODE,&no_ip_rip_send_version_num_cmd_ripd_plat);
	install_element(INTERFACE_VLAN_NODE,&ip_rip_receive_version_cmd_ripd_plat);
	install_element(INTERFACE_VLAN_NODE,&ip_rip_receive_version_1_cmd_ripd_plat);
	install_element(INTERFACE_VLAN_NODE,&ip_rip_receive_version_2_cmd_ripd_plat);
	install_element(INTERFACE_VLAN_NODE,&no_ip_rip_receive_version_cmd_ripd_plat);
	install_element(INTERFACE_VLAN_NODE,&no_ip_rip_receive_version_num_cmd_ripd_plat);
	install_element(INTERFACE_VLAN_NODE,&ip_rip_authentication_mode_cmd_ripd_plat);
	install_element(INTERFACE_VLAN_NODE,&ip_rip_authentication_mode_authlen_cmd_ripd_plat);
	install_element(INTERFACE_VLAN_NODE,&no_ip_rip_authentication_mode_cmd_ripd_plat);
	install_element(INTERFACE_VLAN_NODE,&no_ip_rip_authentication_mode_type_cmd_ripd_plat);
	install_element(INTERFACE_VLAN_NODE,&no_ip_rip_authentication_mode_type_authlen_cmd_ripd_plat);
	install_element(INTERFACE_VLAN_NODE,&ip_rip_authentication_key_chain_cmd_ripd_plat);
	install_element(INTERFACE_VLAN_NODE,&no_ip_rip_authentication_key_chain_cmd_ripd_plat);
	install_element(INTERFACE_VLAN_NODE,&no_ip_rip_authentication_key_chain2_cmd_ripd_plat);
	install_element(INTERFACE_VLAN_NODE,&ip_rip_authentication_string_cmd_ripd_plat);
	install_element(INTERFACE_VLAN_NODE,&no_ip_rip_authentication_string_cmd_ripd_plat);
	install_element(INTERFACE_VLAN_NODE,&no_ip_rip_authentication_string2_cmd_ripd_plat);
	install_element(INTERFACE_VLAN_NODE,&ip_rip_split_horizon_cmd_ripd_plat);
	install_element(INTERFACE_VLAN_NODE,&ip_rip_split_horizon_poisoned_reverse_cmd_ripd_plat);
	install_element(INTERFACE_VLAN_NODE,&no_ip_rip_split_horizon_cmd_ripd_plat);
	install_element(INTERFACE_VLAN_NODE,&no_ip_rip_split_horizon_poisoned_reverse_cmd_ripd_plat);
}
예제 #19
0
/* RMAP_NODE */
static void ripd_install_RMAP_NODE_cmd(void)
{
	install_element(RMAP_NODE,&match_interface_cmd_ripd_plat);
	install_element(RMAP_NODE,&no_match_interface_cmd_ripd_plat);
	install_element(RMAP_NODE,&no_match_interface_val_cmd_ripd_plat);
	install_element(RMAP_NODE,&match_ip_next_hop_cmd_ripd_plat);
	install_element(RMAP_NODE,&no_match_ip_next_hop_cmd_ripd_plat);
	install_element(RMAP_NODE,&no_match_ip_next_hop_val_cmd_ripd_plat);
	install_element(RMAP_NODE,&match_ip_next_hop_prefix_list_cmd_ripd_plat);
	install_element(RMAP_NODE,&no_match_ip_next_hop_prefix_list_cmd_ripd_plat);
	install_element(RMAP_NODE,&no_match_ip_next_hop_prefix_list_val_cmd_ripd_plat);
	install_element(RMAP_NODE,&match_ip_address_cmd_ripd_plat);
	install_element(RMAP_NODE,&no_match_ip_address_cmd_ripd_plat);
	install_element(RMAP_NODE,&no_match_ip_address_val_cmd_ripd_plat);
	install_element(RMAP_NODE,&match_ip_address_prefix_list_cmd_ripd_plat);
	install_element(RMAP_NODE,&no_match_ip_address_prefix_list_cmd_ripd_plat);
	install_element(RMAP_NODE,&no_match_ip_address_prefix_list_val_cmd_ripd_plat);
	install_element(RMAP_NODE,&match_metric_cmd_ripd_plat);
	install_element(RMAP_NODE,&no_match_metric_cmd_ripd_plat);
	install_element(RMAP_NODE,&no_match_metric_val_cmd_ripd_plat);
	install_element(RMAP_NODE,&match_tag_cmd_ripd_plat);
	install_element(RMAP_NODE,&no_match_tag_cmd_ripd_plat);
	install_element(RMAP_NODE,&no_match_tag_val_cmd_ripd_plat);
	install_element(RMAP_NODE,&set_metric_cmd_ripd_plat);
	install_element(RMAP_NODE,&set_metric_addsub_cmd_ripd_plat);
	install_element(RMAP_NODE,&no_set_metric_val_cmd_ripd_plat);
	install_element(RMAP_NODE,&set_ip_nexthop_cmd_ripd_plat);
	install_element(RMAP_NODE,&no_set_ip_nexthop_cmd_ripd_plat);
	install_element(RMAP_NODE,&no_set_ip_nexthop_val_cmd_ripd_plat);
	install_element(RMAP_NODE,&set_tag_cmd_ripd_plat);
	install_element(RMAP_NODE,&no_set_tag_cmd_ripd_plat);
	install_element(RMAP_NODE,&no_set_tag_val_cmd_ripd_plat);
	install_element(RMAP_NODE,&no_rmap_onmatch_goto_cmd_ripd_plat);
	install_element(RMAP_NODE,&no_set_metric_cmd_ripd_plat);
	install_element(RMAP_NODE,&rmap_onmatch_next_cmd_ripd_plat);
}
예제 #20
0
/* KEYCHAIN_NODE */
static void ripd_install_KEYCHAIN_NODE_cmd(void)
{
	install_element(KEYCHAIN_NODE,&key_chain_cmd_ripd_plat);
	install_element(KEYCHAIN_NODE,&no_key_chain_cmd_ripd_plat);
}
예제 #21
0
/* KEYCHAIN_KEY_NODE */
static void ripd_install_KEYCHAIN_KEY_NODE_cmd(void)
{
	install_element(KEYCHAIN_KEY_NODE,&key_string_cmd_ripd_plat);
	install_element(KEYCHAIN_KEY_NODE,&no_key_string_cmd_ripd_plat);
	install_element(KEYCHAIN_KEY_NODE,&key_chain_cmd_ripd_plat);
	install_element(KEYCHAIN_KEY_NODE,&no_key_chain_cmd_ripd_plat);
	install_element(KEYCHAIN_KEY_NODE,&key_cmd_ripd_plat);
	install_element(KEYCHAIN_KEY_NODE,&no_key_cmd_ripd_plat);
	install_element(KEYCHAIN_KEY_NODE,&accept_lifetime_day_month_day_month_cmd_ripd_plat);
	install_element(KEYCHAIN_KEY_NODE,&accept_lifetime_day_month_month_day_cmd_ripd_plat);
	install_element(KEYCHAIN_KEY_NODE,&accept_lifetime_month_day_day_month_cmd_ripd_plat);
	install_element(KEYCHAIN_KEY_NODE,&accept_lifetime_month_day_month_day_cmd_ripd_plat);
	install_element(KEYCHAIN_KEY_NODE,&accept_lifetime_infinite_day_month_cmd_ripd_plat);
	install_element(KEYCHAIN_KEY_NODE,&accept_lifetime_infinite_month_day_cmd_ripd_plat);
	install_element(KEYCHAIN_KEY_NODE,&accept_lifetime_duration_day_month_cmd_ripd_plat);
	install_element(KEYCHAIN_KEY_NODE,&accept_lifetime_duration_month_day_cmd_ripd_plat);
	install_element(KEYCHAIN_KEY_NODE,&send_lifetime_day_month_day_month_cmd_ripd_plat);
	install_element(KEYCHAIN_KEY_NODE,&send_lifetime_day_month_month_day_cmd_ripd_plat);
	install_element(KEYCHAIN_KEY_NODE,&send_lifetime_month_day_day_month_cmd_ripd_plat);
	install_element(KEYCHAIN_KEY_NODE,&send_lifetime_month_day_month_day_cmd_ripd_plat);
	install_element(KEYCHAIN_KEY_NODE,&send_lifetime_infinite_day_month_cmd_ripd_plat);
	install_element(KEYCHAIN_KEY_NODE,&send_lifetime_infinite_month_day_cmd_ripd_plat);
	install_element(KEYCHAIN_KEY_NODE,&send_lifetime_duration_day_month_cmd_ripd_plat);
	install_element(KEYCHAIN_KEY_NODE,&send_lifetime_duration_month_day_cmd_ripd_plat);
}
예제 #22
0
/* ZEBRA_NODE */
static void ripd_install_ZEBRA_NODE_cmd(void)
{
	install_element(ZEBRA_NODE,&rip_redistribute_rip_cmd_ripd_plat);
	install_element(ZEBRA_NODE,&no_rip_redistribute_rip_cmd_ripd_plat);
}