summaryrefslogtreecommitdiff
path: root/testprogs/ejs/ejsnet/nethost.js
diff options
context:
space:
mode:
Diffstat (limited to 'testprogs/ejs/ejsnet/nethost.js')
-rw-r--r--testprogs/ejs/ejsnet/nethost.js45
1 files changed, 0 insertions, 45 deletions
diff --git a/testprogs/ejs/ejsnet/nethost.js b/testprogs/ejs/ejsnet/nethost.js
deleted file mode 100644
index 9e11ae89c5..0000000000
--- a/testprogs/ejs/ejsnet/nethost.js
+++ /dev/null
@@ -1,45 +0,0 @@
-function PrintNetHostHelp()
-{
- println("Host management - available commands:");
- println("\t domainlist - list users in specified domain");
-}
-
-
-function ListDomains(hostCtx)
-{
- var domain;
-
- var list = hostCtx.DomainList();
- if (list == undefined) {
- println("Error when listing domains");
- return -1;
- }
-
- for (var i = 0; i < list.Count; i++) {
- domain = list.Domains[i];
- printf("%s\n", domain.Name);
- }
-
- printf("\nResult: %s\n", list.Status.errstr);
-}
-
-
-function HostManager(ctx, options)
-{
- var hostCtx;
-
- if (options.ARGV.length < 2) {
- PrintNetHostHelp();
- return -1;
- }
-
- var hostCmd = options.ARGV[1];
-
- if (hostCmd == "domainlist") {
- hostCtx = ctx.HostMgr();
- ListDomains(hostCtx);
-
- } else {
- println("unknown command");
- }
-}