diff options
author | paul <paul> | 2003-05-18 15:26:26 +0000 |
---|---|---|
committer | paul <paul> | 2003-05-18 15:26:26 +0000 |
commit | 733e8102dc513a49363c73597fbf9d3fe061acd5 (patch) | |
tree | b2c8adab27a48f8b56a3164ded397ef527afb4e9 /ospf6d | |
parent | 551a8979254b5fc797765d18b4c678fb7419e702 (diff) |
From: Hasso Tepper <hasso@estpak.ee>
Subject: [zebra 19093] [PATCH] Two more fixes
1) From 6Wind patch - show router and interface nodes from ospf6d when
using vtysh and don't show defaults in interface node. Fixes bugzilla
#14.
Diffstat (limited to 'ospf6d')
-rw-r--r-- | ospf6d/ChangeLog | 6 | ||||
-rw-r--r-- | ospf6d/ospf6_dump.c | 3 | ||||
-rw-r--r-- | ospf6d/ospf6_interface.c | 8 | ||||
-rw-r--r-- | ospf6d/ospf6_zebra.c | 1 | ||||
-rw-r--r-- | ospf6d/ospf6d.c | 1 |
5 files changed, 18 insertions, 1 deletions
diff --git a/ospf6d/ChangeLog b/ospf6d/ChangeLog index e04d658b..63052c7c 100644 --- a/ospf6d/ChangeLog +++ b/ospf6d/ChangeLog @@ -1,3 +1,9 @@ +2003-05-18 Hasso Tepper <hasso@estpak.ee> + + * ospf6_{dump,interface,zebra}.c,ospf6d.c: show router and interface + nodes from ospf6d when using vtysh, and don't show defaults in + interface node (from ^WIND patch). + 2003-04-23 Hasso Tepper <hasso@estpak.ee> * {ospf6_damp,ospf6d}.c: fix "router xxx" node commands in vtysh diff --git a/ospf6d/ospf6_dump.c b/ospf6d/ospf6_dump.c index e950ec8c..1e3c0c42 100644 --- a/ospf6d/ospf6_dump.c +++ b/ospf6d/ospf6_dump.c @@ -224,7 +224,8 @@ DEFUN (no_debug_ospf6_all, struct cmd_node debug_node = { DEBUG_NODE, - "" + "", + vtysh: 1 }; int diff --git a/ospf6d/ospf6_interface.c b/ospf6d/ospf6_interface.c index d394f21b..4d632b22 100644 --- a/ospf6d/ospf6_interface.c +++ b/ospf6d/ospf6_interface.c @@ -961,18 +961,25 @@ ospf6_interface_config_write (struct vty *vty) vty_out (vty, "interface %s%s", o6i->interface->name, VTY_NEWLINE); + if (o6i->cost != 1) vty_out (vty, " ipv6 ospf6 cost %d%s", o6i->cost, VTY_NEWLINE); + if (o6i->hello_interval != 10) vty_out (vty, " ipv6 ospf6 hello-interval %d%s", o6i->hello_interval, VTY_NEWLINE); + if (o6i->dead_interval != 40) vty_out (vty, " ipv6 ospf6 dead-interval %d%s", o6i->dead_interval, VTY_NEWLINE); + if (o6i->rxmt_interval != 5) vty_out (vty, " ipv6 ospf6 retransmit-interval %d%s", o6i->rxmt_interval, VTY_NEWLINE); + if (o6i->priority != 1) vty_out (vty, " ipv6 ospf6 priority %d%s", o6i->priority, VTY_NEWLINE); + if (o6i->transdelay != 1) vty_out (vty, " ipv6 ospf6 transmit-delay %d%s", o6i->transdelay, VTY_NEWLINE); + if (o6i->instance_id != 0) vty_out (vty, " ipv6 ospf6 instance-id %d%s", o6i->instance_id, VTY_NEWLINE); @@ -994,6 +1001,7 @@ struct cmd_node interface_node = { INTERFACE_NODE, "%s(config-if)# ", + vtysh: 1 }; void diff --git a/ospf6d/ospf6_zebra.c b/ospf6d/ospf6_zebra.c index 7b8a8dcf..347ba1cf 100644 --- a/ospf6d/ospf6_zebra.c +++ b/ospf6d/ospf6_zebra.c @@ -348,6 +348,7 @@ struct cmd_node zebra_node = { ZEBRA_NODE, "%s(config-zebra)# ", + vtysh: 0 }; #define ADD 0 diff --git a/ospf6d/ospf6d.c b/ospf6d/ospf6d.c index d7b1aa34..8b50b5ab 100644 --- a/ospf6d/ospf6d.c +++ b/ospf6d/ospf6d.c @@ -712,6 +712,7 @@ struct cmd_node ospf6_node = { OSPF6_NODE, "%s(config-ospf6)# ", + vtysh: 1 }; /* Install ospf related commands. */ |