• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/zebra/ospfd/

Lines Matching refs:vty

28 #include "vty.h"
130 /* vty_out (vty, "OSPF metric value is invalid%s", VTY_NEWLINE); */
175 vty->node = OSPF_NODE;
176 vty->index = ospf_get ();
190 vty_out (vty, "There isn't active ospf instance.%s", VTY_NEWLINE);
212 vty_out (vty, "Please specify Router ID by A.B.C.D%s", VTY_NEWLINE);
268 vty_out (vty, "Please specify an existing interface%s", VTY_NEWLINE);
279 vty_out (vty, "Please specify interface address by A.B.C.D%s",
316 vty_out (vty, "Please specify an existing interface%s", VTY_NEWLINE);
327 vty_out (vty, "Please specify interface address by A.B.C.D%s",
365 struct ospf *ospf= vty->index;
377 vty_out (vty, "There is already same network statement.%s", VTY_NEWLINE);
394 struct ospf *ospf = (struct ospf *) vty->index;
406 vty_out (vty, "Can't find specified network area configuration.%s",
425 struct ospf *ospf = vty->index;
487 struct ospf *ospf = vty->index;
510 struct ospf *ospf = vty->index;
572 struct ospf *ospf = vty->index;
598 struct ospf *ospf = vty->index;
633 struct vty *vty; /* vty stuff */
649 struct vty *vty)
653 vl_config->vty = vty;
661 struct vty *vty;
664 vty = vl_config->vty;
669 vty_out (vty,
679 vty_out (vty, "Area %s is %s%s",
688 vty_out (vty, "Area %ld is %s%s",
718 struct vty *vty;
721 vty = vl_config->vty;
740 vty_out (vty, "OSPF: Key %d already exists%s",
758 vty_out (vty, "OSPF: Key %d does not exist%s",
888 ospf_vl_config_data_init(&vl_config, vty);
894 vty_out (vty, "OSPF area ID is invalid%s", VTY_NEWLINE);
901 vty_out (vty, "Please specify valid Router ID as a.b.c.d%s",
917 /* vty_out (vty, "argv[%d] - %s%s", i, argv[i], VTY_NEWLINE); */
1023 ospf_vl_config_data_init(&vl_config, vty);
1028 vty_out (vty, "OSPF area ID is invalid%s", VTY_NEWLINE);
1035 vty_out (vty, "Area does not exist%s", VTY_NEWLINE);
1042 vty_out (vty, "Please specify valid Router ID as a.b.c.d%s",
1065 /* vty_out (vty, "argv[%d] - %s%s", i, argv[i], VTY_NEWLINE); */
1331 struct ospf *ospf = vty->index;
1353 vty_out (vty, "Shortcut area setting will take effect "
1396 struct ospf *ospf = vty->index;
1405 vty_out (vty, "First deconfigure all virtual link through this area%s",
1424 struct ospf *ospf = vty->index;
1433 vty_out (vty, "%% Area cannot be nssa as it contains a virtual link%s",
1452 struct ospf *ospf = vty->index;
1474 struct ospf *ospf = vty->index;
1493 struct ospf *ospf = vty->index;
1502 vty_out (vty, "%% Area cannot be nssa as it contains a virtual link%s",
1559 struct ospf *ospf = vty->index;
1568 vty_out (vty, "%% Area cannot be nssa as it contains a virtual link%s",
1587 struct ospf *ospf = vty->index;
1609 struct ospf *ospf = vty->index;
1642 vty_out (vty, "The area is neither stub, nor NSSA%s", VTY_NEWLINE);
1675 vty_out (vty, "The area is neither stub, nor NSSA%s", VTY_NEWLINE);
2014 struct ospf *ospf = vty->index;
2031 struct ospf *ospf = vty->index;
2062 struct ospf *ospf = vty->index;
2094 struct ospf *ospf = vty->index;
2142 struct ospf *ospf = vty->index;
2181 struct ospf *ospf = vty->index;
2229 struct ospf *ospf = vty->index;
2246 struct ospf *ospf = vty->index;
2282 vty_out (vty, "reference-bandwidth value is invalid%s", VTY_NEWLINE);
2291 vty_out (vty, "%% OSPF: Reference bandwidth is changed.%s", VTY_NEWLINE);
2292 vty_out (vty, " Please ensure reference bandwidth is consistent across all routers%s", VTY_NEWLINE);
2313 vty_out (vty, "%% OSPF: Reference bandwidth is changed.%s", VTY_NEWLINE);
2314 vty_out (vty, " Please ensure reference bandwidth is consistent across all routers%s", VTY_NEWLINE);
2342 vty_out (vty, "Please specify Neighbor ID by A.B.C.D%s", VTY_NEWLINE);
2355 vty_out (vty, "clear neighbor %s%s", argv[0], VTY_NEWLINE);
2383 show_ip_ospf_area (struct vty *vty, struct ospf_area *area)
2386 vty_out (vty, " Area ID: %s", inet_ntoa (area->area_id));
2390 vty_out (vty, " (Backbone)%s", VTY_NEWLINE);
2394 vty_out (vty, " (Stub%s%s)",
2402 vty_out (vty, " (NSSA%s%s)",
2407 vty_out (vty, "%s", VTY_NEWLINE);
2408 vty_out (vty, " Shortcutting mode: %s",
2410 vty_out (vty, ", S-bit consensus: %s%s",
2415 vty_out (vty, " Number of interfaces in this area: Total: %d, "
2422 vty_out (vty, " It is an NSSA configuration. %s Elected NSSA/ABR performs type-7/type-5 LSA translation. %s", VTY_NEWLINE, VTY_NEWLINE);
2424 vty_out (vty, " It is not ABR, therefore not Translator. %s",
2429 vty_out (vty, " We are an ABR and the NSSA Elected Translator. %s", VTY_NEWLINE);
2431 vty_out (vty, " We are an ABR, but not the NSSA Elected Translator. %s", VTY_NEWLINE);
2437 vty_out (vty, " Number of fully adjacent neighbors in this area:"
2441 vty_out (vty, " Area has ");
2443 vty_out (vty, "no authentication%s", VTY_NEWLINE);
2445 vty_out (vty, "simple password authentication%s", VTY_NEWLINE);
2447 vty_out (vty, "message digest authentication%s", VTY_NEWLINE);
2450 vty_out (vty, " Number of full virtual adjacencies going through"
2454 vty_out (vty, " SPF algorithm executed %d times%s",
2458 vty_out (vty, " Number of LSA %ld%s", area->lsdb->total, VTY_NEWLINE);
2460 vty_out (vty, "%s", VTY_NEWLINE);
2476 vty_out (vty, " OSPF Routing Process not enabled%s", VTY_NEWLINE);
2481 vty_out (vty, " OSPF Routing Process, Router ID: %s%s",
2486 vty_out (vty, " Supports only single TOS (TOS0) routes%s", VTY_NEWLINE);
2487 vty_out (vty, " This implementation conforms to RFC2328%s", VTY_NEWLINE);
2488 vty_out (vty, " RFC1583Compatibility flag is %s%s",
2492 vty_out (vty, " OpaqueCapability flag is %s%s%s",
2501 vty_out (vty, " SPF schedule delay %d secs, Hold time between two SPFs %d secs%s",
2505 vty_out (vty, " Refresh timer %d secs%s",
2510 vty_out (vty, " This router is an ABR, ABR type is: %s%s",
2514 vty_out (vty, " This router is an ASBR "
2518 vty_out (vty, " Number of external LSA %ld%s",
2522 vty_out (vty, " Number of areas attached to this router: %d%s%s",
2528 show_ip_ospf_area (vty, area);
2536 show_ip_ospf_interface_sub (struct vty *vty, struct interface *ifp)
2547 vty_out (vty, "%s is up, line protocol is up%s", ifp->name, VTY_NEWLINE);
2550 vty_out (vty, "%s is down, line protocol is down%s", ifp->name,
2555 vty_out (vty, " OSPF not enabled on this interface%s", VTY_NEWLINE);
2557 vty_out (vty, " OSPF is enabled, but not running on this interface%s",
2565 vty_out (vty, " OSPF not enabled on this interface%s", VTY_NEWLINE);
2577 vty_out (vty, " Internet Address %s/%d,",
2580 vty_out (vty, " Area %s%s", ospf_area_desc_string (oi->area),
2583 vty_out (vty, " Router ID %s, Network Type %s, Cost: %d%s",
2587 vty_out (vty, " Transmit Delay is %d sec, State %s, Priority %d%s",
2593 vty_out (vty, " No designated router on this network%s", VTY_NEWLINE);
2598 vty_out (vty, " No designated router on this network%s", VTY_NEWLINE);
2601 vty_out (vty, " Designated Router (ID) %s,",
2603 vty_out (vty, " Interface Address %s%s",
2610 vty_out (vty, " No backup designated router on this network%s",
2616 vty_out (vty, " No backup designated router on this network%s",
2620 vty_out (vty, " Backup Designated Router (ID) %s,",
2622 vty_out (vty, " Interface Address %s%s",
2626 vty_out (vty, " Timer intervals configured,");
2627 vty_out (vty, " Hello %d, Dead %d, Wait %d, Retransmit %d%s",
2634 vty_out (vty, " Hello due in %s%s",
2637 vty_out (vty, " No Hellos (Passive interface)%s", VTY_NEWLINE);
2639 vty_out (vty, " Neighbor Count is %d, Adjacent neighbor count is %d%s",
2660 show_ip_ospf_interface_sub (vty, node->data);
2665 vty_out (vty, "No such interface name%s", VTY_NEWLINE);
2667 show_ip_ospf_interface_sub (vty, ifp);
2674 show_ip_ospf_neighbor_sub (struct vty *vty, struct ospf_interface *oi)
2691 vty_out (vty, "%-15s %3d %-15s %8s ",
2695 vty_out (vty, "%-15s %3d %-15s %8s ",
2698 vty_out (vty, "%-15s ", inet_ntoa (nbr->src));
2699 vty_out (vty, "%-15s %5ld %5ld %5d%s",
2718 vty_out (vty, " OSPF Routing Process not enabled%s", VTY_NEWLINE);
2723 vty_out (vty, "%sNeighbor ID Pri State Dead "
2728 show_ip_ospf_neighbor_sub (vty, getdata (node));
2746 vty_out (vty, " OSPF Routing Process not enabled%s", VTY_NEWLINE);
2751 vty_out (vty, "%sNeighbor ID Pri State Dead "
2760 show_ip_ospf_neighbor_sub (vty, oi);
2772 vty_out (vty, "%-15s %3d %-15s %8s ",
2774 vty_out (vty, "%-15s %-15s %5d %5d %5d%s",
2799 vty_out (vty, " OSPF Routing Process not enabled%s", VTY_NEWLINE);
2806 vty_out (vty, "Please specify interface address by A.B.C.D%s",
2812 vty_out (vty, "No such interface address%s", VTY_NEWLINE);
2815 vty_out (vty, "%sNeighbor ID Pri State Dead "
2818 show_ip_ospf_neighbor_sub (vty, oi);
2825 show_ip_ospf_nbr_nbma_detail_sub (struct vty *vty, struct ospf_interface *oi,
2831 vty_out (vty, " Neighbor %s,", "-");
2834 vty_out (vty, " interface address %s%s",
2837 vty_out (vty, " In the area %s via interface %s%s",
2840 vty_out (vty, " Neighbor priority is %d, State is %s,",
2843 vty_out (vty, " %d state changes%s", nbr_nbma->state_change, VTY_NEWLINE);
2846 vty_out (vty, " Poll interval %d%s", nbr_nbma->v_poll, VTY_NEWLINE);
2849 vty_out (vty, " Poll timer due in %s%s",
2853 vty_out (vty, " Thread Poll Timer %s%s",
2858 show_ip_ospf_neighbor_detail_sub (struct vty *vty, struct ospf_interface *oi,
2865 vty_out (vty, " Neighbor %s,", "-");
2867 vty_out (vty, " Neighbor %s,", inet_ntoa (nbr->router_id));
2870 vty_out (vty, " interface address %s%s",
2873 vty_out (vty, " In the area %s via interface %s%s",
2876 vty_out (vty, " Neighbor priority is %d, State is %s,",
2879 vty_out (vty, " %d state changes%s", nbr->state_change, VTY_NEWLINE);
2882 vty_out (vty, " DR is %s,", inet_ntoa (nbr->d_router));
2884 vty_out (vty, " BDR is %s%s", inet_ntoa (nbr->bd_router), VTY_NEWLINE);
2886 vty_out (vty, " Options %d %s%s", nbr->options,
2889 vty_out (vty, " Dead timer due in %s%s",
2892 vty_out (vty, " Database Summary List %d%s",
2895 vty_out (vty, " Link State Request List %ld%s",
2898 vty_out (vty, " Link State Retransmission List %ld%s",
2901 vty_out (vty, " Thread Inactivity Timer %s%s",
2904 vty_out (vty, " Thread Database Description Retransmision %s%s",
2907 vty_out (vty, " Thread Link State Request Retransmission %s%s",
2910 vty_out (vty, " Thread Link State Update Retransmission %s%s%s",
2931 vty_out (vty, "Please specify Neighbor ID by A.B.C.D%s", VTY_NEWLINE);
2941 show_ip_ospf_neighbor_detail_sub (vty, oi, nbr);
2974 show_ip_ospf_neighbor_detail_sub (vty, oi, nbr);
3005 show_ip_ospf_neighbor_detail_sub (vty, oi, rn->info);
3016 show_ip_ospf_nbr_nbma_detail_sub (vty, oi, nbr_nbma);
3041 vty_out (vty, "Please specify interface address by A.B.C.D%s",
3047 vty_out (vty, "No such interface address%s", VTY_NEWLINE);
3057 show_ip_ospf_neighbor_detail_sub (vty, oi, nbr);
3069 struct vty *vty = (struct vty *) v;
3080 vty_out (vty, "%-15s ", inet_ntoa (lsa->data->id));
3081 vty_out (vty, "%-15s %4d 0x%08lx 0x%04x",
3089 vty_out (vty, " %-d", ntohs (rl->links));
3099 vty_out (vty, " %s/%d", inet_ntoa (p.prefix), p.prefixlen);
3109 vty_out (vty, " %s %s/%d [0x%lx]",
3124 vty_out (vty, VTY_NEWLINE);
3178 show_ip_ospf_database_header (struct vty *vty, struct ospf_lsa *lsa)
3182 vty_out (vty, " LS age: %d%s", LS_AGE (lsa), VTY_NEWLINE);
3183 vty_out (vty, " Options: %d%s", lsa->data->options, VTY_NEWLINE);
3187 vty_out (vty, " Flags: 0x%x" , rlsa->flags);
3190 vty_out (vty, " :%s%s%s%s",
3196 vty_out (vty, "%s", VTY_NEWLINE);
3198 vty_out (vty, " LS Type: %s%s",
3200 vty_out (vty, " Link State ID: %s %s%s", inet_ntoa (lsa->data->id),
3202 vty_out (vty, " Advertising Router: %s%s",
3204 vty_out (vty, " LS Seq Number: %08lx%s", (u_long)ntohl (lsa->data->ls_seqnum),
3206 vty_out (vty, " Checksum: 0x%04x%s", ntohs (lsa->data->checksum),
3208 vty_out (vty, " Length: %d%s", ntohs (lsa->data->length), VTY_NEWLINE);
3240 show_ip_ospf_database_router_links (struct vty *vty,
3250 vty_out (vty, " Link connected to: %s%s",
3252 vty_out (vty, " (Link ID) %s: %s%s", link_id_desc[type],
3254 vty_out (vty, " (Link Data) %s: %s%s", link_data_desc[type],
3256 vty_out (vty, " Number of TOS metrics: 0%s", VTY_NEWLINE);
3257 vty_out (vty, " TOS 0 Metric: %d%s",
3259 vty_out (vty, "%s", VTY_NEWLINE);
3265 show_router_lsa_detail (struct vty *vty, struct ospf_lsa *lsa)
3271 show_ip_ospf_database_header (vty, lsa);
3273 vty_out (vty, " Number of Links: %d%s%s", ntohs (rl->links),
3276 show_ip_ospf_database_router_links (vty, rl);
3284 show_network_lsa_detail (struct vty *vty, struct ospf_lsa *lsa)
3292 show_ip_ospf_database_header (vty, lsa);
3294 vty_out (vty, " Network Mask: /%d%s",
3300 vty_out (vty, " Attached Router: %s%s",
3303 vty_out (vty, "%s", VTY_NEWLINE);
3311 show_summary_lsa_detail (struct vty *vty, struct ospf_lsa *lsa)
3317 show_ip_ospf_database_header (vty, lsa);
3319 vty_out (vty, " Network Mask: /%d%s", ip_masklen (sl->mask),
3321 vty_out (vty, " TOS: 0 Metric: %d%s", GET_METRIC (sl->metric),
3330 show_summary_asbr_lsa_detail (struct vty *vty, struct ospf_lsa *lsa)
3336 show_ip_ospf_database_header (vty, lsa);
3338 vty_out (vty, " Network Mask: /%d%s",
3340 vty_out (vty, " TOS: 0 Metric: %d%s", GET_METRIC (sl->metric),
3349 show_as_external_lsa_detail (struct vty *vty, struct ospf_lsa *lsa)
3355 show_ip_ospf_database_header (vty, lsa);
3357 vty_out (vty, " Network Mask: /%d%s",
3359 vty_out (vty, " Metric Type: %s%s",
3362 vty_out (vty, " TOS: 0%s", VTY_NEWLINE);
3363 vty_out (vty, " Metric: %d%s",
3365 vty_out (vty, " Forward Address: %s%s",
3368 vty_out (vty, " External Route Tag: %lu%s%s",
3381 /* show_ip_ospf_database_header (vty, lsa); */
3402 show_as_nssa_lsa_detail (struct vty *vty, struct ospf_lsa *lsa)
3408 show_ip_ospf_database_header (vty, lsa);
3410 vty_out (vty, " Network Mask: /%d%s",
3412 vty_out (vty, " Metric Type: %s%s",
3415 vty_out (vty, " TOS: 0%s", VTY_NEWLINE);
3416 vty_out (vty, " Metric: %d%s",
3418 vty_out (vty, " NSSA: Forward Address: %s%s",
3421 vty_out (vty, " External Route Tag: %u%s%s",
3431 show_func_dummy (struct vty *vty, struct ospf_lsa *lsa)
3438 show_opaque_lsa_detail (struct vty *vty, struct ospf_lsa *lsa)
3442 show_ip_ospf_database_header (vty, lsa);
3443 show_opaque_info_detail (vty, lsa);
3445 vty_out (vty, "%s", VTY_NEWLINE);
3451 int (*show_function[])(struct vty *, struct ospf_lsa *) =
3476 show_lsa_prefix_set (struct vty *vty, struct prefix_ls *lp, struct in_addr *id,
3497 show_lsa_detail_proc (struct vty *vty, struct route_table *rt,
3504 show_lsa_prefix_set (vty, &lp, id, adv_router);
3519 show_function[lsa->data->type] (vty, lsa);
3528 show_lsa_detail (struct vty *vty, int type,
3539 vty_out (vty, " %s %s%s",
3542 show_lsa_detail_proc (vty, AS_LSDB (ospf_top, type), id, adv_router);
3548 vty_out (vty, "%s %s (Area %s)%s%s",
3551 show_lsa_detail_proc (vty, AREA_LSDB (area, type), id, adv_router);
3558 show_lsa_detail_adv_router_proc (struct vty *vty, struct route_table *rt,
3573 show_function[lsa->data->type] (vty, lsa);
3579 show_lsa_detail_adv_router (struct vty *vty, int type,
3590 vty_out (vty, " %s %s%s",
3593 show_lsa_detail_adv_router_proc (vty, AS_LSDB (ospf_top, type),
3600 vty_out (vty, "%s %s (Area %s)%s%s",
3603 show_lsa_detail_adv_router_proc (vty, AREA_LSDB (area, type),
3611 show_ip_ospf_database_summary (struct vty *vty, int self)
3634 vty_out (vty, " %s (Area %s)%s%s",
3638 vty_out (vty, "%s%s", show_database_header[type], VTY_NEWLINE);
3640 foreach_lsa (AREA_LSDB (area, type), vty, self, show_lsa_summary);
3642 vty_out (vty, "%s", VTY_NEWLINE);
3662 vty_out (vty, " %s%s%s",
3665 vty_out (vty, "%s%s", show_database_header[type],
3667 foreach_lsa (AS_LSDB (ospf_top, type), vty, self, show_lsa_summary);
3668 vty_out (vty, "%s", VTY_NEWLINE);
3672 vty_out (vty, "%s", VTY_NEWLINE);
3676 show_ip_ospf_database_maxage (struct vty *vty)
3681 vty_out (vty, "%s MaxAge Link States:%s%s",
3687 vty_out (vty, "Link type: %d%s", lsa->data->type, VTY_NEWLINE);
3688 vty_out (vty, "Link State ID: %s%s",
3690 vty_out (vty, "Advertising Router: %s%s",
3692 vty_out (vty, "LSA lock count: %d%s", lsa->lock, VTY_NEWLINE);
3693 vty_out (vty, "%s", VTY_NEWLINE);
3747 vty_out (vty, "%s OSPF Router with ID (%s)%s%s", VTY_NEWLINE,
3753 show_ip_ospf_database_summary (vty, 0);
3774 show_ip_ospf_database_summary (vty, 1);
3779 show_ip_ospf_database_maxage (vty);
3795 show_lsa_detail (vty, type, NULL, NULL);
3804 show_lsa_detail (vty, type, &id, NULL);
3816 show_lsa_detail (vty, type, &id, &adv_router);
3885 vty_out (vty, "%s OSPF Router with ID (%s)%s%s", VTY_NEWLINE,
3927 show_lsa_detail_adv_router (vty, type, &adv_router);
3959 ifp = vty->index;
3967 vty_out (vty, "Please specify interface address by A.B.C.D%s",
3992 vty_out (vty, "You shouldn't get here!%s", VTY_NEWLINE);
4018 ifp = vty->index;
4026 vty_out (vty, "Please specify interface address by A.B.C.D%s",
4062 ifp = vty->index;
4070 vty_out (vty, "Please specify interface address by A.B.C.D%s",
4114 ifp = vty->index;
4122 vty_out (vty, "Please specify interface address by A.B.C.D%s",
4168 ifp = vty->index;
4176 vty_out (vty, "Please specify interface address by A.B.C.D%s",
4231 ifp = vty->index;
4239 vty_out (vty, "Please specify interface address by A.B.C.D%s",
4251 vty_out (vty, "OSPF: Key %d already exists%s", key_id, VTY_NEWLINE);
4302 ifp = vty->index;
4310 vty_out (vty, "Please specify interface address by A.B.C.D%s",
4324 vty_out (vty, "OSPF: Key %d does not exist%s", key_id, VTY_NEWLINE);
4365 struct interface *ifp = vty->index;
4378 vty_out (vty, "Interface output cost is invalid%s", VTY_NEWLINE);
4387 vty_out (vty, "Please specify interface address by A.B.C.D%s",
4428 struct interface *ifp = vty->index;
4433 ifp = vty->index;
4441 vty_out (vty, "Please specify interface address by A.B.C.D%s",
4504 struct interface *ifp = vty->index;
4519 vty_out (vty, "Router Dead Interval is invalid%s", VTY_NEWLINE);
4528 vty_out (vty, "Please specify interface address by A.B.C.D%s",
4581 struct interface *ifp = vty->index;
4588 ifp = vty->index;
4596 vty_out (vty, "Please specify interface address by A.B.C.D%s",
4656 struct interface *ifp = vty->index;
4669 vty_out (vty, "Hello Interval is invalid%s", VTY_NEWLINE);
4678 vty_out (vty, "Please specify interface address by A.B.C.D%s",
4717 struct interface *ifp = vty->index;
4722 ifp = vty->index;
4730 vty_out (vty, "Please specify interface address by A.B.C.D%s",
4778 struct interface *ifp = vty->index;
4833 struct interface *ifp = vty->index;
4877 struct interface *ifp = vty->index;
4891 vty_out (vty, "Router Priority is invalid%s", VTY_NEWLINE);
4900 vty_out (vty, "Please specify interface address by A.B.C.D%s",
4954 struct interface *ifp = vty->index;
4960 ifp = vty->index;
4968 vty_out (vty, "Please specify interface address by A.B.C.D%s",
5029 struct interface *ifp = vty->index;
5041 vty_out (vty, "Retransmit Interval is invalid%s", VTY_NEWLINE);
5051 vty_out (vty, "Please specify interface address by A.B.C.D%s",
5090 struct interface *ifp = vty->index;
5095 ifp = vty->index;
5103 vty_out (vty, "Please specify interface address by A.B.C.D%s",
5149 struct interface *ifp = vty->index;
5161 vty_out (vty, "Transmit Delay is invalid%s", VTY_NEWLINE);
5170 vty_out (vty, "Please specify interface address by A.B.C.D%s",
5209 struct interface *ifp = vty->index;
5214 ifp = vty->index;
5222 vty_out (vty, "Please specify interface address by A.B.C.D%s",
6281 ospf_distance_set (vty, argv[0], argv[1], NULL);
6293 ospf_distance_unset (vty, argv[0], argv[1], NULL);
6305 ospf_distance_set (vty, argv[0], argv[1], argv[2]);
6318 ospf_distance_unset (vty, argv[0], argv[1], argv[2]);
6323 show_ip_ospf_route_network (struct vty *vty, struct route_table *rt)
6330 vty_out (vty, "============ OSPF network routing table ============%s",
6344 vty_out (vty, "N IA %-18s [%d] area: %s%s", buf1, or->cost,
6347 vty_out (vty, "D IA %-18s Discard entry%s", buf1, VTY_NEWLINE);
6350 vty_out (vty, "N %-18s [%d] area: %s%s", buf1, or->cost,
6364 vty_out (vty, "%24s directly attached to %s%s",
6367 vty_out (vty, "%24s via %s, %s%s", "",
6373 vty_out (vty, "%s", VTY_NEWLINE);
6377 show_ip_ospf_route_router (struct vty *vty, struct route_table *rtrs)
6384 vty_out (vty, "============ OSPF router routing table =============%s",
6391 vty_out (vty, "R %-15s ", inet_ntoa (rn->p.u.prefix4));
6397 vty_out(vty," " );
6400 vty_out (vty, "%s [%d] area: %s",
6404 vty_out (vty, "%s%s%s",
6413 vty_out (vty, "%24s directly attached to %s%s",
6416 vty_out (vty, "%24s via %s, %s%s", "",
6422 vty_out (vty, "%s", VTY_NEWLINE);
6426 show_ip_ospf_route_external (struct vty *vty, struct route_table *rt)
6433 vty_out (vty, "============ OSPF external routing table ===========%s",
6445 vty_out (vty, "N E1 %-18s [%d] tag: %u%s", buf1,
6449 vty_out (vty, "N E2 %-18s [%d/%d] tag: %u%s", buf1, er->cost,
6460 vty_out (vty, "%24s directly attached to %s%s",
6463 vty_out (vty, "%24s via %s, %s%s", "",
6469 vty_out (vty, "%s", VTY_NEWLINE);
6483 vty_out (vty, "OSPF is not enabled%s", VTY_NEWLINE);
6489 vty_out (vty, "No OSPF routing information exist%s", VTY_NEWLINE);
6494 show_ip_ospf_route_network (vty, ospf_top->new_table); */
6497 show_ip_ospf_route_router (vty, ospf_top->new_rtrs);
6513 vty_out (vty, "OSPF is not enabled%s", VTY_NEWLINE);
6519 vty_out (vty, "No OSPF routing information exist%s", VTY_NEWLINE);
6524 show_ip_ospf_route_network (vty, ospf_top->new_table);
6527 show_ip_ospf_route_router (vty, ospf_top->new_rtrs);
6530 show_ip_ospf_route_external (vty, ospf_top->old_external_route);
6580 config_write_interface (struct vty *vty)
6596 vty_out (vty, "!%s", VTY_NEWLINE);
6597 vty_out (vty, "interface %s%s", ifp->name,
6600 vty_out (vty, " description %s%s", ifp->desc,
6613 vty_out (vty, " ip ospf network %s",
6616 vty_out (vty, " %s", inet_ntoa (rn->p.u.prefix4));
6617 vty_out (vty, "%s", VTY_NEWLINE);
6648 vty_out (vty, " ip ospf authentication%s", auth_str);
6650 vty_out (vty, " %s", inet_ntoa (rn->p.u.prefix4));
6651 vty_out (vty, "%s", VTY_NEWLINE);
6658 vty_out (vty, " ip ospf authentication-key %s",
6661 vty_out (vty, " %s", inet_ntoa (rn->p.u.prefix4));
6662 vty_out (vty, "%s", VTY_NEWLINE);
6669 vty_out (vty, " ip ospf message-digest-key %d md5 %s",
6672 vty_out (vty, " %s", inet_ntoa (rn->p.u.prefix4));
6673 vty_out (vty, "%s", VTY_NEWLINE);
6679 vty_out (vty, " ip ospf cost %u", params->output_cost_cmd);
6681 vty_out (vty, " %s", inet_ntoa (rn->p.u.prefix4));
6682 vty_out (vty, "%s", VTY_NEWLINE);
6689 vty_out (vty, " ip ospf hello-interval %u", params->v_hello);
6691 vty_out (vty, " %s", inet_ntoa (rn->p.u.prefix4));
6692 vty_out (vty, "%s", VTY_NEWLINE);
6700 vty_out (vty, " ip ospf dead-interval %u", params->v_wait);
6702 vty_out (vty, " %s", inet_ntoa (rn->p.u.prefix4));
6703 vty_out (vty, "%s", VTY_NEWLINE);
6710 vty_out (vty, " ip ospf priority %u", params->priority);
6712 vty_out (vty, " %s", inet_ntoa (rn->p.u.prefix4));
6713 vty_out (vty, "%s", VTY_NEWLINE);
6720 vty_out (vty, " ip ospf retransmit-interval %u",
6723 vty_out (vty, " %s", inet_ntoa (rn->p.u.prefix4));
6724 vty_out (vty, "%s", VTY_NEWLINE);
6731 vty_out (vty, " ip ospf transmit-delay %u", params->transmit_delay);
6733 vty_out (vty, " %s", inet_ntoa (rn->p.u.prefix4));
6734 vty_out (vty, "%s", VTY_NEWLINE);
6753 ospf_opaque_config_write_if (vty, ifp);
6761 config_write_network_area (struct vty *vty)
6782 vty_out (vty, " network %s/%d area %s%s",
6791 config_write_ospf_area (struct vty *vty)
6807 vty_out (vty, " area %s authentication%s", buf, VTY_NEWLINE);
6809 vty_out (vty, " area %s authentication message-digest%s",
6814 vty_out (vty, " area %s shortcut %s%s", buf,
6826 vty_out (vty, " area %s nssa", buf);
6829 vty_out (vty, " area %s stub", buf);
6832 vty_out (vty, " no-summary");
6834 vty_out (vty, "%s", VTY_NEWLINE);
6837 vty_out (vty, " area %s default-cost %d%s", buf,
6846 vty_out (vty, " area %s range %s/%d", buf,
6850 vty_out (vty, " cost %d", range->cost_config);
6853 vty_out (vty, " not-advertise");
6856 vty_out (vty, " substitute %s/%d",
6859 vty_out (vty, "%s", VTY_NEWLINE);
6863 vty_out (vty, " area %s export-list %s%s", buf,
6867 vty_out (vty, " area %s import-list %s%s", buf,
6871 vty_out (vty, " area %s filter-list prefix %s in%s", buf,
6875 vty_out (vty, " area %s filter-list prefix %s out%s", buf,
6883 config_write_ospf_nbr_nbma (struct vty *vty)
6892 vty_out (vty, " neighbor %s", inet_ntoa (nbr_nbma->addr));
6895 vty_out (vty, " priority %d", nbr_nbma->priority);
6898 vty_out (vty, " poll-interval %d", nbr_nbma->v_poll);
6900 vty_out (vty, "%s", VTY_NEWLINE);
6907 config_write_virtual_link (struct vty *vty)
6936 vty_out (vty, " area %s virtual-link %s hello-interval %d retransmit-interval %d transmit-delay %d dead-interval %d%s",
6945 vty_out (vty, " area %s virtual-link %s%s", buf,
6949 vty_out (vty, " area %s virtual-link %s authentication-key %s%s",
6958 vty_out (vty, " area %s virtual-link %s message-digest-key %d md5 %s%s",
6975 config_write_ospf_redistribute (struct vty *vty)
6983 vty_out (vty, " redistribute %s", distribute_str[type]);
6985 vty_out (vty, " metric %d", ospf_top->dmetric[type].value);
6988 vty_out (vty, " metric-type 1");
6991 vty_out (vty, " route-map %s", ROUTEMAP_NAME (type));
6993 vty_out (vty, "%s", VTY_NEWLINE);
7000 config_write_ospf_default_metric (struct vty *vty)
7003 vty_out (vty, " default-metric %d%s", ospf_top->default_metric,
7009 config_write_ospf_distribute (struct vty *vty)
7018 vty_out (vty, " distribute-list %s out %s%s",
7026 vty_out (vty, " default-information originate");
7028 vty_out (vty, " default-information originate always");
7031 vty_out (vty, " metric %d",
7034 vty_out (vty, " metric-type 1");
7037 vty_out (vty, " route-map %s", ROUTEMAP_NAME (DEFAULT_ROUTE));
7039 vty_out (vty, "%s", VTY_NEWLINE);
7048 config_write_ospf_distance (struct vty *vty)
7054 vty_out (vty, " distance %d%s", ospf_top->distance_all, VTY_NEWLINE);
7060 vty_out (vty, " distance ospf");
7063 vty_out (vty, " intra-area %d", ospf_top->distance_intra);
7065 vty_out (vty, " inter-area %d", ospf_top->distance_inter);
7067 vty_out (vty, " external %d", ospf_top->distance_external);
7069 vty_out (vty, "%s", VTY_NEWLINE);
7075 vty_out (vty, " distance %d %s/%d %s%s", odistance->distance,
7085 ospf_config_write (struct vty *vty)
7093 vty_out (vty, "router ospf%s", VTY_NEWLINE);
7102 vty_out (vty, " ospf router-id %s%s",
7107 vty_out (vty, " ospf abr-type %s%s",
7112 vty_out (vty, " compatible rfc1583%s", VTY_NEWLINE);
7116 vty_out (vty, " auto-cost reference-bandwidth %d%s",
7122 vty_out (vty, " timers spf %d %d%s",
7127 vty_out (vty, " refresh timer %d%s",
7131 config_write_ospf_redistribute (vty);
7141 vty_out (vty, " passive-interface %s%s",
7151 vty_out (vty, " passive-interface %s%s",
7157 config_write_network_area (vty);
7160 config_write_ospf_area (vty);
7163 config_write_ospf_nbr_nbma (vty);
7166 config_write_virtual_link (vty);
7169 config_write_ospf_default_metric (vty);
7172 config_write_ospf_distribute (vty);
7175 config_write_ospf_distance (vty);
7178 ospf_opaque_config_write_router (vty, ospf_top);
7448 /* Install OSPF related vty commands. */
7590 /* Init interface related vty commands. */
7593 /* Init zebra related vty commands. */