mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-08 21:17:43 +03:00
xsd files for vrouter, market, marketapp.
This commit is contained in:
parent
278da86c3e
commit
5bfc6d8468
44
share/doc/xsd/marketplace.xsd
Normal file
44
share/doc/xsd/marketplace.xsd
Normal file
@ -0,0 +1,44 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
|
||||
targetNamespace="http://opennebula.org/XMLSchema" xmlns="http://opennebula.org/XMLSchema">
|
||||
<xs:element name="MARKETPLACE">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="ID" type="xs:integer"/>
|
||||
<xs:element name="UID" type="xs:integer"/>
|
||||
<xs:element name="GID" type="xs:integer"/>
|
||||
<xs:element name="UNAME" type="xs:string"/>
|
||||
<xs:element name="GNAME" type="xs:string"/>
|
||||
<xs:element name="NAME" type="xs:string"/>
|
||||
<xs:element name="MARKET_MAD" type="xs:string"/>
|
||||
<xs:element name="ZONE_ID" type="xs:string"/>
|
||||
<xs:element name="TOTAL_MB" type="xs:integer"/>
|
||||
<xs:element name="FREE_MB" type="xs:integer"/>
|
||||
<xs:element name="USED_MB" type="xs:integer"/>
|
||||
<xs:element name="MARKETPLACEAPPS">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="ID" type="xs:integer" minOccurs="0" maxOccurs="unbounded"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="PERMISSIONS" minOccurs="0" maxOccurs="1">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="OWNER_U" type="xs:integer"/>
|
||||
<xs:element name="OWNER_M" type="xs:integer"/>
|
||||
<xs:element name="OWNER_A" type="xs:integer"/>
|
||||
<xs:element name="GROUP_U" type="xs:integer"/>
|
||||
<xs:element name="GROUP_M" type="xs:integer"/>
|
||||
<xs:element name="GROUP_A" type="xs:integer"/>
|
||||
<xs:element name="OTHER_U" type="xs:integer"/>
|
||||
<xs:element name="OTHER_M" type="xs:integer"/>
|
||||
<xs:element name="OTHER_A" type="xs:integer"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="TEMPLATE" type="xs:anyType"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:schema>
|
12
share/doc/xsd/marketplace_pool.xsd
Normal file
12
share/doc/xsd/marketplace_pool.xsd
Normal file
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="unqualified"
|
||||
targetNamespace="http://opennebula.org/XMLSchema" xmlns="http://opennebula.org/XMLSchema">
|
||||
<xs:include schemaLocation="marketplace.xsd"/>
|
||||
<xs:element name="MARKETPLACE_POOL">
|
||||
<xs:complexType>
|
||||
<xs:sequence maxOccurs="1" minOccurs="1">
|
||||
<xs:element ref="MARKETPLACE" maxOccurs="unbounded" minOccurs="0"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:schema>
|
46
share/doc/xsd/marketplaceapp.xsd
Normal file
46
share/doc/xsd/marketplaceapp.xsd
Normal file
@ -0,0 +1,46 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
|
||||
targetNamespace="http://opennebula.org/XMLSchema" xmlns="http://opennebula.org/XMLSchema">
|
||||
<xs:element name="MARKETPLACEAPP">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="ID" type="xs:integer"/>
|
||||
<xs:element name="UID" type="xs:integer"/>
|
||||
<xs:element name="GID" type="xs:integer"/>
|
||||
<xs:element name="UNAME" type="xs:string"/>
|
||||
<xs:element name="GNAME" type="xs:string"/>
|
||||
<xs:element name="REGTIME" type="xs:integer"/>
|
||||
<xs:element name="NAME" type="xs:string"/>
|
||||
<xs:element name="ZONE_ID" type="xs:string"/>
|
||||
<xs:element name="ORIGIN_ID" type="xs:string"/>
|
||||
<xs:element name="SOURCE" type="xs:string"/>
|
||||
<xs:element name="MD5" type="xs:string"/>
|
||||
<xs:element name="SIZE" type="xs:integer"/>
|
||||
<xs:element name="DESCRIPTION" type="xs:string"/>
|
||||
<xs:element name="VERSION" type="xs:string"/>
|
||||
<xs:element name="FORMAT" type="xs:string"/>
|
||||
<xs:element name="APPTEMPLATE64" type="xs:string"/>
|
||||
<xs:element name="MARKETPLACE_ID" type="xs:integer"/>
|
||||
<xs:element name="MARKETPLACE" type="xs:string"/>
|
||||
<xs:element name="STATE" type="xs:integer"/>
|
||||
<xs:element name="TYPE" type="xs:integer"/>
|
||||
<xs:element name="PERMISSIONS" minOccurs="0" maxOccurs="1">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="OWNER_U" type="xs:integer"/>
|
||||
<xs:element name="OWNER_M" type="xs:integer"/>
|
||||
<xs:element name="OWNER_A" type="xs:integer"/>
|
||||
<xs:element name="GROUP_U" type="xs:integer"/>
|
||||
<xs:element name="GROUP_M" type="xs:integer"/>
|
||||
<xs:element name="GROUP_A" type="xs:integer"/>
|
||||
<xs:element name="OTHER_U" type="xs:integer"/>
|
||||
<xs:element name="OTHER_M" type="xs:integer"/>
|
||||
<xs:element name="OTHER_A" type="xs:integer"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="TEMPLATE" type="xs:anyType"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:schema>
|
12
share/doc/xsd/marketplaceapp_pool.xsd
Normal file
12
share/doc/xsd/marketplaceapp_pool.xsd
Normal file
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="unqualified"
|
||||
targetNamespace="http://opennebula.org/XMLSchema" xmlns="http://opennebula.org/XMLSchema">
|
||||
<xs:include schemaLocation="marketplaceapp.xsd"/>
|
||||
<xs:element name="MARKETPLACEAPP_POOL">
|
||||
<xs:complexType>
|
||||
<xs:sequence maxOccurs="1" minOccurs="1">
|
||||
<xs:element ref="MARKETPLACEAPP" maxOccurs="unbounded" minOccurs="0"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:schema>
|
@ -26,8 +26,10 @@ mkdir -p samples/vmtemplate samples/vmtemplate_pool
|
||||
mkdir -p samples/user samples/user_pool
|
||||
mkdir -p samples/vm samples/vm_pool
|
||||
mkdir -p samples/vnet samples/vnet_pool
|
||||
mkdir -p samples/vnet samples/acct
|
||||
|
||||
mkdir -p samples/acct
|
||||
mkdir -p samples/vrouter samples/vrouter_pool
|
||||
mkdir -p samples/marketplace samples/marketplace_pool
|
||||
mkdir -p samples/marketplaceapp samples/marketplaceapp_pool
|
||||
|
||||
|
||||
onecluster create newcluster
|
||||
@ -146,6 +148,7 @@ onetemplate list -x > samples/vmtemplate_pool/1.xml
|
||||
|
||||
onetemplate create test/template.0 --user newuser --password abc
|
||||
onetemplate create test/template.1 --user newuser --password abc
|
||||
onetemplate create test/vr-template.0
|
||||
|
||||
for i in `onetemplate list | tail -n +2 | tr -s ' ' | cut -f2 -d ' '`; do
|
||||
onetemplate show $i -x > samples/vmtemplate/$i.xml
|
||||
@ -153,11 +156,15 @@ done
|
||||
|
||||
onetemplate list -x > samples/vmtemplate_pool/2.xml
|
||||
|
||||
|
||||
# VM
|
||||
onetemplate instantiate 0 -m 2 --user newuser --password abc
|
||||
onetemplate instantiate 1 -m 2 --user newuser --password abc
|
||||
|
||||
# Virtual Routers
|
||||
|
||||
onevrouter create test/vr.0
|
||||
onevrouter instantiate 0 vr-tmpl -m 2
|
||||
|
||||
for i in `onevm list | tail -n +2 | tr -s ' ' | cut -f2 -d ' '`; do
|
||||
onevm deploy $i host01
|
||||
done
|
||||
@ -181,8 +188,29 @@ done
|
||||
|
||||
onevm list -x > samples/vm_pool/0.xml
|
||||
|
||||
for i in `onevrouter list | tail -n +2 | tr -s ' ' | cut -f2 -d ' '`; do
|
||||
onevrouter show $i -x > samples/vrouter/$i.xml
|
||||
done
|
||||
|
||||
for i in cluster datastore group vdc host image vmtemplate user vm vnet
|
||||
onevrouter list -x > samples/vrouter_pool/0.xml
|
||||
|
||||
# Marketplace
|
||||
|
||||
for i in `onemarket list | tail -n +2 | tr -s ' ' | cut -f2 -d ' '`; do
|
||||
onemarket show $i -x > samples/marketplace/$i.xml
|
||||
done
|
||||
|
||||
onemarket list -x > samples/marketplace_pool/0.xml
|
||||
|
||||
# Marketplace Apps
|
||||
|
||||
for i in `onemarketapp list | tail -n +2 | tr -s ' ' | cut -f2 -d ' '`; do
|
||||
onemarketapp show $i -x > samples/marketplaceapp/$i.xml
|
||||
done
|
||||
|
||||
onemarketapp list -x > samples/marketplaceapp_pool/0.xml
|
||||
|
||||
for i in cluster datastore group vdc host image vmtemplate user vm vnet vrouter marketplace marketplaceapp
|
||||
do
|
||||
POOL_NAME="$i""_pool"
|
||||
|
||||
|
@ -6,7 +6,7 @@ VN_MAD = dummy
|
||||
AR = [
|
||||
IP = 130.10.0.1,
|
||||
TYPE = IP4,
|
||||
SIZE = 4
|
||||
SIZE = 40
|
||||
]
|
||||
|
||||
# Custom Attributes to be used in Context
|
||||
|
7
share/doc/xsd/test/vr-template.0
Normal file
7
share/doc/xsd/test/vr-template.0
Normal file
@ -0,0 +1,7 @@
|
||||
NAME = vr-tmpl
|
||||
VROUTER = YES
|
||||
|
||||
MEMORY = 128
|
||||
CPU = 1
|
||||
EXTRA = ABC
|
||||
EXTRA2 = 123
|
24
share/doc/xsd/test/vr.0
Normal file
24
share/doc/xsd/test/vr.0
Normal file
@ -0,0 +1,24 @@
|
||||
NAME = vr0
|
||||
|
||||
KEEPALIVED_ID = 12345
|
||||
KEEPALIVED_PASSWORD = abc123456
|
||||
|
||||
NIC = [
|
||||
FLOATING_IP = YES,
|
||||
NETWORK = "Blue LAN",
|
||||
NETWORK_UID = "0"
|
||||
]
|
||||
|
||||
NIC = [
|
||||
FLOATING_IP = YES,
|
||||
NETWORK = "R",
|
||||
NETWORK_UID = "0",
|
||||
AR_ID = 0
|
||||
]
|
||||
|
||||
NIC = [
|
||||
VROUTER_MANAGEMENT = YES,
|
||||
NETWORK = "R",
|
||||
NETWORK_UID = "0",
|
||||
AR_ID = 1
|
||||
]
|
39
share/doc/xsd/vrouter.xsd
Normal file
39
share/doc/xsd/vrouter.xsd
Normal file
@ -0,0 +1,39 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
|
||||
targetNamespace="http://opennebula.org/XMLSchema" xmlns="http://opennebula.org/XMLSchema">
|
||||
<xs:element name="VROUTER">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="ID" type="xs:integer"/>
|
||||
<xs:element name="UID" type="xs:integer"/>
|
||||
<xs:element name="GID" type="xs:integer"/>
|
||||
<xs:element name="UNAME" type="xs:string"/>
|
||||
<xs:element name="GNAME" type="xs:string"/>
|
||||
<xs:element name="NAME" type="xs:string"/>
|
||||
<xs:element name="PERMISSIONS" minOccurs="0" maxOccurs="1">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="OWNER_U" type="xs:integer"/>
|
||||
<xs:element name="OWNER_M" type="xs:integer"/>
|
||||
<xs:element name="OWNER_A" type="xs:integer"/>
|
||||
<xs:element name="GROUP_U" type="xs:integer"/>
|
||||
<xs:element name="GROUP_M" type="xs:integer"/>
|
||||
<xs:element name="GROUP_A" type="xs:integer"/>
|
||||
<xs:element name="OTHER_U" type="xs:integer"/>
|
||||
<xs:element name="OTHER_M" type="xs:integer"/>
|
||||
<xs:element name="OTHER_A" type="xs:integer"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="VMS">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="ID" type="xs:integer" minOccurs="0" maxOccurs="unbounded"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="TEMPLATE" type="xs:anyType"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:schema>
|
12
share/doc/xsd/vrouter_pool.xsd
Normal file
12
share/doc/xsd/vrouter_pool.xsd
Normal file
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="unqualified"
|
||||
targetNamespace="http://opennebula.org/XMLSchema" xmlns="http://opennebula.org/XMLSchema">
|
||||
<xs:include schemaLocation="vrouter.xsd"/>
|
||||
<xs:element name="VROUTER_POOL">
|
||||
<xs:complexType>
|
||||
<xs:sequence maxOccurs="1" minOccurs="1">
|
||||
<xs:element ref="VROUTER" maxOccurs="unbounded" minOccurs="0"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:schema>
|
Loading…
Reference in New Issue
Block a user