summaryrefslogtreecommitdiffstats
path: root/lib/container
diff options
context:
space:
mode:
Diffstat (limited to 'lib/container')
-rwxr-xr-xlib/container/list33
1 files changed, 33 insertions, 0 deletions
diff --git a/lib/container/list b/lib/container/list
index 2be55b5..3073853 100755
--- a/lib/container/list
+++ b/lib/container/list
@@ -171,6 +171,17 @@ cat << EOF
EOF
;;
+
+ xml)
+
+cat << EOF
+ <container>
+ <name>${CONTAINER}</name>
+ <ipv4Address>${ADDRESS}</ipv4Address>
+ </container>
+EOF
+
+ ;;
esac
}
@@ -281,6 +292,20 @@ container:
EOF
;;
+
+ xml)
+
+cat << EOF
+<container-tools>
+ <version>${VERSION}</version>
+</container-tools>
+<host>
+ <name>${HOST}</name>
+</host>
+<containers>
+EOF
+
+ ;;
esac
CONTAINERS="$(cd "${MACHINES}" 2>/dev/null && find -maxdepth 1 -type d -and -not -name '.container-tools' -and -not -name 'container-tools' -and -not -name 'lost+found' -and -not -name '.snap' -and -not -name '.snapshot' -printf '%P\n' | sort)"
@@ -369,4 +394,12 @@ cat << EOF
EOF
;;
+
+ xml)
+
+cat << EOF
+</containers>
+EOF
+
+ ;;
esac