add vlan_id to VOLTTenant tosca object
diff --git a/xos/tosca/custom_types/xos.m4 b/xos/tosca/custom_types/xos.m4
index 28df41e..629c378 100644
--- a/xos/tosca/custom_types/xos.m4
+++ b/xos/tosca/custom_types/xos.m4
@@ -139,6 +139,9 @@
derived_from: tosca.nodes.Root
properties:
xos_base_tenant_props
+ vlan_id:
+ type: string
+ required: false
tosca.nodes.User:
derived_from: tosca.nodes.Root
diff --git a/xos/tosca/custom_types/xos.yaml b/xos/tosca/custom_types/xos.yaml
index 92f73f4..6611198 100644
--- a/xos/tosca/custom_types/xos.yaml
+++ b/xos/tosca/custom_types/xos.yaml
@@ -201,6 +201,9 @@
service_specific_id:
type: string
required: false
+ vlan_id:
+ type: string
+ required: false
tosca.nodes.User:
derived_from: tosca.nodes.Root
diff --git a/xos/tosca/resources/VOLTTenant.py b/xos/tosca/resources/VOLTTenant.py
index 611bf23..f00b515 100644
--- a/xos/tosca/resources/VOLTTenant.py
+++ b/xos/tosca/resources/VOLTTenant.py
@@ -14,7 +14,7 @@
class XOSVOLTTenant(XOSResource):
provides = "tosca.nodes.VOLTTenant"
xos_model = VOLTTenant
- copyin_props = ["service_specific_id"]
+ copyin_props = ["service_specific_id", "vlan_id"]
name_field = None
def get_xos_args(self, throw_exception=True):
diff --git a/xos/tosca/samples/cord.yaml b/xos/tosca/samples/cord.yaml
index eaa536a..477be2f 100644
--- a/xos/tosca/samples/cord.yaml
+++ b/xos/tosca/samples/cord.yaml
@@ -125,6 +125,7 @@
type: tosca.nodes.VOLTTenant
properties:
service_specific_id: 1234
+ vlan_id: 4321
requirements:
- provider_service:
node: service_volt