Browse Source

kamctl: lcr commands disabled

- only left enabled is the one related to weights
- the commands were not using latest db schema
- Juha suggested handling lcr via kamctl is too complex to scale, so
  commands are disabled until new code is contributed
(cherry picked from commit 252fcd963637e92727e58f6c1b84bf06200eee12)
Daniel-Constantin Mierla 15 years ago
parent
commit
95792d551a
1 changed files with 13 additions and 3 deletions
  1. 13 3
      utils/kamctl/kamctl

+ 13 - 3
utils/kamctl/kamctl

@@ -1116,25 +1116,35 @@ trusted() {
 lcr() {
 lcr() {
 	case $1 in
 	case $1 in
 		show_gws)
 		show_gws)
+			merr "command disabled"
+			exit;
 			require_dbengine
 			require_dbengine
 			mecho "lcr gateways"
 			mecho "lcr gateways"
 			QUERY="select * FROM $GW_TABLE ORDER BY $LCR_ID_COLUMN, $LCR_GW_GRPID_COLUMN; "
 			QUERY="select * FROM $GW_TABLE ORDER BY $LCR_ID_COLUMN, $LCR_GW_GRPID_COLUMN; "
 			$DBROCMD "$QUERY"
 			$DBROCMD "$QUERY"
 			;;
 			;;
 		show_routes)
 		show_routes)
+			merr "command disabled"
+			exit;
 			require_dbengine
 			require_dbengine
 			mecho "lcr routes"
 			mecho "lcr routes"
 			QUERY="select * FROM $LCR_TABLE ORDER BY $LCR_ID_COLUMN, $LCR_PREFIX_COLUMN; "
 			QUERY="select * FROM $LCR_TABLE ORDER BY $LCR_ID_COLUMN, $LCR_PREFIX_COLUMN; "
 			$DBROCMD "$QUERY"
 			$DBROCMD "$QUERY"
 			;;
 			;;
 		reload)
 		reload)
-			$RPCCMD lcr.reload
+			merr "command disabled"
+			exit;
+			$CTLCMD lcr.reload
 			;;
 			;;
 		dump_gws)
 		dump_gws)
-			$RPCCMD lcr.dump_gws
+			merr "command disabled"
+			exit;
+			$CTLCMD lcr.dump_gws
 			;;
 			;;
 		dump_routes)
 		dump_routes)
-			$RPCCMD lcr.dump_lcrs
+			merr "command disabled"
+			exit;
+			$CTLCMD lcr.dump_lcrs
 			;;
 			;;
 		eval_weights)
 		eval_weights)
 			shift
 			shift