#!/bin/bash
#
# Copyright (c) 2016 by Cisco Systems, Inc.
# All rights reserved.

source /etc/rc.d/init.d/pd-functions

case $1 in
    show)
        platform_is_emtvm
        if [[ $? == 1 ]]; then
            echo vm
        else
            echo lxc
        fi
        ;;
    lxc)
        echo node will reimage to lxc mode
        platform_set_lxc
        ;;
    vm)
        echo node will reimage to vm mode
        platform_set_vm
        ;;
    *)
        echo $0: unknown argument
        echo "usage: $0 [show|lxc|vm]"
esac
