From adf092eea97d4878f259d9980ca12b23fc2a2db4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Gonz=C3=A1lez?= Date: Thu, 22 Nov 2018 15:00:47 +0100 Subject: [PATCH] F #826 Create new config file for onevntemplate command --- install.sh | 3 ++- src/cli/etc/onevntemplate.yaml | 30 ++++++++++++++++++++++ src/cli/one_helper/onevntemplate_helper.rb | 2 +- 3 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 src/cli/etc/onevntemplate.yaml diff --git a/install.sh b/install.sh index 6bb26b9220..fa54beae25 100755 --- a/install.sh +++ b/install.sh @@ -1669,7 +1669,8 @@ CLI_CONF_FILES="src/cli/etc/onegroup.yaml \ src/cli/etc/onevdc.yaml \ src/cli/etc/onevrouter.yaml \ src/cli/etc/onemarketapp.yaml \ - src/cli/etc/onemarket.yaml" + src/cli/etc/onemarket.yaml \ + src/cli/etc/onevntemplate.yaml" #----------------------------------------------------------------------------- # Sunstone files diff --git a/src/cli/etc/onevntemplate.yaml b/src/cli/etc/onevntemplate.yaml new file mode 100644 index 0000000000..5a78daf446 --- /dev/null +++ b/src/cli/etc/onevntemplate.yaml @@ -0,0 +1,30 @@ +--- +:ID: + :desc: ONE identifier for the Template + :size: 4 + +:NAME: + :desc: Name of the Template + :size: 27 + :left: true + +:USER: + :desc: Username of the Template owner + :size: 15 + :left: true + +:GROUP: + :desc: Group of the Template + :size: 15 + :left: true + +:REGTIME: + :desc: Registration time of the Template + :size: 15 + +:default: +- :ID +- :USER +- :GROUP +- :NAME +- :REGTIME diff --git a/src/cli/one_helper/onevntemplate_helper.rb b/src/cli/one_helper/onevntemplate_helper.rb index 839448f8f2..0203559807 100644 --- a/src/cli/one_helper/onevntemplate_helper.rb +++ b/src/cli/one_helper/onevntemplate_helper.rb @@ -50,7 +50,7 @@ EOT end def self.conf_file - "onetemplate.yaml" + "onevntemplate.yaml" end INT_EXP = /^-?\d+$/