diff options
| -rw-r--r-- | eigrpd/eigrp_vty.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/eigrpd/eigrp_vty.c b/eigrpd/eigrp_vty.c index 7baf7b9f6b..f29305e7a3 100644 --- a/eigrpd/eigrp_vty.c +++ b/eigrpd/eigrp_vty.c @@ -250,29 +250,31 @@ DEFUN (no_router_eigrp, return CMD_SUCCESS; } -DEFUN (eigrp_router_id, +DEFPY (eigrp_router_id, eigrp_router_id_cmd, - "eigrp router-id A.B.C.D", + "eigrp router-id A.B.C.D$addr", "EIGRP specific commands\n" "Router ID for this EIGRP process\n" "EIGRP Router-ID in IP address format\n") { - // struct eigrp *eigrp = vty->index; - /*TODO: */ + VTY_DECLVAR_CONTEXT(eigrp, eigrp); + + eigrp->router_id_static = addr; return CMD_SUCCESS; } -DEFUN (no_eigrp_router_id, +DEFPY (no_eigrp_router_id, no_eigrp_router_id_cmd, - "no eigrp router-id A.B.C.D", + "no eigrp router-id [A.B.C.D$addr]", NO_STR "EIGRP specific commands\n" "Router ID for this EIGRP process\n" "EIGRP Router-ID in IP address format\n") { - // struct eigrp *eigrp = vty->index; - /*TODO: */ + VTY_DECLVAR_CONTEXT(eigrp, eigrp); + + eigrp->router_id_static.s_addr = 0; return CMD_SUCCESS; } |
