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;
}