Network Cloud onboarding model sync with sdc model
[sdc.git] / catalog-be / src / test / resources / yamlValidation / test-no-valid.yml
1     tosca.datatypes.Root:
2   description: The TOSCA root Data Type all other TOSCA base Data Types derive from
3
4 integer:
5   derived_from: tosca.datatypes.Root
6
7 string:
8   derived_from: tosca.datatypes.Root
9
10 boolean:
11   derived_from: tosca.datatypes.Root
12
13 float:
14   derived_from: tosca.datatypes.Root
15
16 list:
17   derived_from: tosca.datatypes.Root
18
19 map:
20   derived_from: tosca.datatypes.Root
21
22 json:
23   derived_from: tosca.datatypes.Root
24
25 scalar-unit:
26   derived_from: tosca.datatypes.Root
27
28 scalar-unit.size:
29   derived_from: scalar-unit
30
31 scalar-unit.time:
32   derived_from: scalar-unit
33
34 scalar-unit.frequency:
35   derived_from: scalar-unit
36
37   
38 tosca.datatypes.Credential: 
39   derived_from: tosca.datatypes.Root
40   properties: 
41     protocol: 
42       type: string
43       required: false
44     token_type: 
45       type: string
46       default: password
47     token: 
48       type: string
49     keys:
50       type: map
51       required: false
52       entry_schema:
53         type: string
54     user:
55       type: string
56       required: false
57
58 tosca.datatypes.TimeInterval: 
59   derived_from: tosca.datatypes.Root
60   properties:
61     start_time: 
62       type: timestamp
63       required: true
64     end_time: 
65       type: timestamp
66       required: true
67
68 tosca.datatypes.network.NetworkInfo:
69   derived_from: tosca.datatypes.Root
70   properties:  
71     network_name: 
72       type: string
73     network_id: 
74       type: string
75     addresses:
76       type: list
77       entry_schema:
78         type: string
79
80 tosca.datatypes.network.PortInfo: 
81   derived_from: tosca.datatypes.Root
82   properties:  
83     port_name: 
84       type: string
85     port_id: 
86       type: string
87     network_id: 
88       type: string
89     mac_address: 
90       type: string
91     addresses:
92       type: list
93       entry_schema:
94         type: string
95
96 tosca.datatypes.network.PortDef:
97   derived_from: integer
98   constraints: 
99     - in_range: [ 1, 65535 ]
100
101 tosca.datatypes.network.PortSpec: 
102   derived_from: tosca.datatypes.Root
103   properties:  
104     protocol: 
105       type: string
106       required: true
107       default: tcp
108       constraints:
109         - valid_values: [ udp, tcp, igmp ]
110     target:  
111       type: tosca.datatypes.network.PortDef
112     target_range:
113       type: range 
114       constraints:
115         - in_range: [ 1, 65535 ]
116     source:
117       type: tosca.datatypes.network.PortDef
118     source_range:
119       type: range
120       constraints:
121         - in_range: [ 1, 65535 ]
122
123 ###################new Data Types Onboarding Integration##########################
124
125 org.openecomp.datatypes.heat.network.AddressPair:
126   derived_from: tosca.datatypes.Root
127   description: MAC/IP address pairs
128   properties:
129     mac_address:
130       type: string
131       description: MAC address
132       required: false
133       status: SUPPORTED
134     ip_address:
135       type: string
136       description: IP address
137       required: false
138       status: SUPPORTED
139
140 org.openecomp.datatypes.heat.network.subnet.HostRoute:
141   derived_from: tosca.datatypes.Root
142   description: Host route info for the subnet
143   properties:
144     destination:
145       type: string
146       description: The destination for static route
147       required: false
148       status: SUPPORTED
149     nexthop:
150       type: string
151       description: The next hop for the destination
152       required: false
153       status: SUPPORTED
154       
155 org.openecomp.datatypes.heat.network.AllocationPool:
156   derived_from: tosca.datatypes.Root
157   description: The start and end addresses for the allocation pool
158   properties:
159     start:
160       type: string
161       description: Start address for the allocation pool
162       required: false
163       status: SUPPORTED
164     end:
165       type: string
166       description: End address for the allocation pool
167       required: false
168       status: SUPPORTED
169
170 org.openecomp.datatypes.heat.network.neutron.Subnet:
171   derived_from: tosca.datatypes.Root
172   description: A subnet represents an IP address block that can be used for assigning IP addresses to virtual instances
173   properties:
174     tenant_id:
175       type: string
176       description: The ID of the tenant who owns the network
177       required: false
178       status: SUPPORTED
179     enable_dhcp:
180       type: boolean
181       description: Set to true if DHCP is enabled and false if DHCP is disabled
182       required: false
183       default: true
184       status: SUPPORTED
185     ipv6_address_mode:
186       type: string
187       description: IPv6 address mode
188       required: false
189       status: SUPPORTED
190       constraints:
191       - valid_values:
192         - dhcpv6-stateful
193         - dhcpv6-stateless
194         - slaac
195     ipv6_ra_mode:
196       type: string
197       description: IPv6 RA (Router Advertisement) mode
198       required: false
199       status: SUPPORTED
200       constraints:
201       - valid_values:
202         - dhcpv6-stateful
203         - dhcpv6-stateless
204         - slaac
205     value_specs:
206       type: map
207       description: Extra parameters to include in the request
208       required: false
209       default: {
210         }
211       status: SUPPORTED
212       entry_schema:
213         type: string
214     allocation_pools:
215        type: list
216        description: The start and end addresses for the allocation pools
217        required: false
218        status: SUPPORTED
219        entry_schema:
220          type: org.openecomp.datatypes.heat.network.AllocationPool
221     subnetpool:
222       type: string
223       description: The name or ID of the subnet pool
224       required: false
225       status: SUPPORTED
226     dns_nameservers:
227       type: list
228       description: A specified set of DNS name servers to be used
229       required: false
230       default: [
231         ]
232       status: SUPPORTED
233       entry_schema:
234         type: string     
235     host_routes:
236       type: list
237       description: The gateway IP address
238       required: false
239       status: SUPPORTED
240       entry_schema:
241         type: org.openecomp.datatypes.heat.network.subnet.HostRoute
242     ip_version:
243       type: integer
244       description: The gateway IP address
245       required: false
246       default: 4
247       status: SUPPORTED
248       constraints:
249       - valid_values:
250         - '4'
251         - '6'
252     name:
253       type: string
254       description: The name of the subnet
255       required: false
256       status: SUPPORTED
257     prefixlen:
258       type: integer
259       description: Prefix length for subnet allocation from subnet pool
260       required: false
261       status: SUPPORTED
262       constraints:
263       - greater_or_equal: 0
264     cidr:
265       type: string
266       description: The CIDR
267       required: false
268       status: SUPPORTED
269     gateway_ip:
270       type: string
271       description: The gateway IP address
272       required: false
273       status: SUPPORTED
274
275 org.openecomp.datatypes.heat.novaServer.network.PortExtraProperties:
276   derived_from: tosca.datatypes.Root
277   description: Nova server network expand properties for port
278   properties:
279     port_security_enabled:
280       type: boolean
281       description: Flag to enable/disable port security on the port
282       required: false
283       status: SUPPORTED
284     mac_address:
285       type: string
286       description: MAC address to give to this port
287       required: false
288       status: SUPPORTED
289     admin_state_up:
290       type: boolean
291       description: The administrative state of this port
292       required: false
293       default: true
294       status: SUPPORTED
295     qos_policy:
296       type: string
297       description: The name or ID of QoS policy to attach to this port
298       required: false
299       status: SUPPORTED
300     allowed_address_pairs:
301       type: list
302       description: Additional MAC/IP address pairs allowed to pass through the port
303       required: false
304       status: SUPPORTED
305       entry_schema:
306         type: org.openecomp.datatypes.heat.network.AddressPair
307     binding:vnic_type:
308       type: string
309       description: The vnic type to be bound on the neutron port
310       required: false
311       status: SUPPORTED
312       constraints:
313       - valid_values:
314         - macvtap
315         - direct
316         - normal
317     value_specs:
318       type: map
319       description: Extra parameters to include in the request
320       required: false
321       default: {
322         }
323       status: SUPPORTED
324       entry_schema:
325         type: string
326
327 org.openecomp.datatypes.heat.novaServer.network.AddressInfo:
328   derived_from: tosca.datatypes.network.NetworkInfo
329   description: Network addresses with corresponding port id
330   properties:
331     port_id:
332       type: string
333       description: Port id
334       required: false
335       status: SUPPORTED
336
337 org.openecomp.datatypes.heat.neutron.port.FixedIps:
338   derived_from: tosca.datatypes.Root
339   description: subnet/ip_address
340   properties:
341     subnet:
342       type: string
343       description: Subnet in which to allocate the IP address for this port
344       required: false
345       status: SUPPORTED
346     ip_address:
347       type: string
348       description: IP address desired in the subnet for this port
349       required: false
350       status: SUPPORTED
351
352 org.openecomp.datatypes.heat.FileInfo:
353   derived_from: tosca.datatypes.Root
354   description: Heat File Info
355   properties:
356     file:
357       type: string
358       description: The required URI string (relative or absolute) which can be used to locate the file
359       required: true
360       status: SUPPORTED
361     file_type:
362       type: string
363       description: The type of the file
364       required: true
365       status: SUPPORTED
366       constraints:
367       - valid_values:
368         - base
369         - env
370         - volume
371         - network
372
373 org.openecomp.datatypes.heat.contrail.network.rule.PortPairs:
374     derived_from: tosca.datatypes.Root
375     description: source and destination port pairs
376     properties:
377       start_port:
378         type: string
379         description: Start port
380         required: false
381         status: SUPPORTED
382       end_port:
383         type: string
384         description: End port
385         required: false
386         status: SUPPORTED
387
388 org.openecomp.datatypes.heat.contrail.network.rule.Rule:
389     derived_from: tosca.datatypes.Root
390     description: policy rule
391     properties:
392       src_ports:
393         type: list
394         description: Source ports
395         required: false
396         status: SUPPORTED
397         entry_schema:
398           type: org.openecomp.datatypes.heat.contrail.network.rule.PortPairs
399       protocol:
400         type: string
401         description: Protocol
402         required: false
403         status: SUPPORTED
404       dst_addresses:
405         type: list
406         description: Destination addresses
407         required: false
408         status: SUPPORTED
409         entry_schema:
410           type: org.openecomp.datatypes.heat.contrail.network.rule.VirtualNetwork
411       apply_service:
412         type: string
413         description: Service to apply
414         required: false
415         status: SUPPORTED
416       dst_ports:
417         type: list
418         description: Destination ports
419         required: false
420         status: SUPPORTED
421         entry_schema:
422           type: org.openecomp.datatypes.heat.contrail.network.rule.PortPairs
423       src_addresses:
424         type: list
425         description: Source addresses
426         required: false
427         status: SUPPORTED
428         entry_schema:
429           type: org.openecomp.datatypes.heat.contrail.network.rule.VirtualNetwork
430       direction:
431         type: string
432         description: Direction
433         required: false
434         status: SUPPORTED
435
436 org.openecomp.datatypes.heat.contrail.network.rule.RuleList:
437     derived_from: tosca.datatypes.Root
438     description: list of policy rules
439     properties:
440       policy_rule:
441         type: list
442         description: Contrail network rule
443         required: false
444         status: SUPPORTED
445         entry_schema:
446           type: org.openecomp.datatypes.heat.contrail.network.rule.Rule
447
448 org.openecomp.datatypes.heat.contrail.network.rule.VirtualNetwork:
449     derived_from: tosca.datatypes.Root
450     description: source and destination addresses
451     properties:
452       virtual_network:
453         type: string
454         description: Virtual network
455         required: false
456         status: SUPPORTED
457
458 org.openecomp.datatypes.heat.network.neutron.SecurityRules.Rule:
459     derived_from: tosca.datatypes.Root
460     description: Rules Pairs
461     properties:
462       remote_group_id:
463         type: string
464         description: The remote group ID to be associated with this security group rule
465         required: false
466         status: SUPPORTED
467       protocol:
468         type: string
469         description: The protocol that is matched by the security group rule
470         required: false
471         status: SUPPORTED
472         constraints:
473         - valid_values:
474           - tcp
475           - udp
476           - icmp
477       ethertype:
478         type: string
479         description: Ethertype of the traffic
480         required: false
481         default: IPv4
482         status: SUPPORTED
483         constraints:
484         - valid_values:
485           - IPv4
486           - IPv6
487       port_range_max:
488         type: integer
489         description: 'The maximum port number in the range that is matched by the
490           security group rule. '
491         required: false
492         status: SUPPORTED
493         constraints:
494         - in_range:
495           - 0
496           - 65535
497       remote_ip_prefix:
498         type: string
499         description: The remote IP prefix (CIDR) to be associated with this security group rule
500         required: false
501         status: SUPPORTED
502       remote_mode:
503         type: string
504         description: Whether to specify a remote group or a remote IP prefix
505         required: false
506         default: remote_ip_prefix
507         status: SUPPORTED
508         constraints:
509         - valid_values:
510           - remote_ip_prefix
511           - remote_group_id
512       direction:
513         type: string
514         description: The direction in which the security group rule is applied
515         required: false
516         default: ingress
517         status: SUPPORTED
518         constraints:
519         - valid_values:
520           - egress
521           - ingress
522       port_range_min:
523         type: integer
524         description: The minimum port number in the range that is matched by the security group rule.
525         required: false
526         status: SUPPORTED
527         constraints:
528         - in_range:
529           - 0
530           - 65535
531
532 org.openecomp.datatypes.heat.substitution.SubstitutionFiltering:
533     derived_from: tosca.datatypes.Root
534     description: Substitution Filter
535     properties:
536       substitute_service_template:
537         type: string
538         description: Substitute Service Template
539         required: true
540         status: SUPPORTED
541       index_value:
542         type: integer
543         description: Index value of the substitution service template runtime instance
544         required: false
545         default: 0
546         status: SUPPORTED
547         constraints:
548         - greater_or_equal: 0
549       count:
550         type: string
551         description: Count
552         required: false
553         default: 1
554         status: SUPPORTED
555       scaling_enabled:
556         type: boolean
557         description: Indicates whether service scaling is enabled
558         required: false
559         default: true
560         status: SUPPORTED
561       mandatory:
562         type: boolean
563         description: Mandatory
564         required: false
565         default: true
566         status: SUPPORTED
567
568 org.openecomp.datatypes.heat.contrailV2.virtual.network.rule.RefDataSequence:
569     derived_from: tosca.datatypes.Root
570     description: network policy refs data sequence
571     properties:
572       network_policy_refs_data_sequence_major:
573         type: integer
574         description: Network Policy ref data sequence Major
575         required: false
576         status: SUPPORTED
577       network_policy_refs_data_sequence_minor:
578         type: integer
579         description: Network Policy ref data sequence Minor
580         required: false
581         status: SUPPORTED
582
583 org.openecomp.datatypes.heat.contrailV2.virtual.network.rule.RefData:
584     derived_from: tosca.datatypes.Root
585     description: network policy refs data
586     properties:
587       network_policy_refs_data_sequence:
588         type: org.openecomp.datatypes.heat.contrailV2.virtual.network.rule.RefDataSequence
589         description: Network Policy ref data sequence
590         required: false
591         status: SUPPORTED
592
593 org.openecomp.datatypes.heat.contrailV2.virtual.network.rule.ref.data.IpamSubnet:
594     derived_from: tosca.datatypes.Root
595     description: Network Ipam Ref Data Subnet
596     properties:
597       network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len:
598         type: string
599         description: Network ipam refs data ipam subnets ip prefix len
600         required: false
601         status: SUPPORTED
602       network_ipam_refs_data_ipam_subnets_subnet_ip_prefix:
603         type: string
604         description: Network ipam refs data ipam subnets ip prefix
605         required: false
606         status: SUPPORTED
607
608 org.openecomp.datatypes.heat.contrailV2.virtual.network.rule.ref.data.IpamSubnetList:
609     derived_from: tosca.datatypes.Root
610     description: Network Ipam Ref Data Subnet List
611     properties:
612       network_ipam_refs_data_ipam_subnets_subnet:
613         type: org.openecomp.datatypes.heat.contrailV2.virtual.network.rule.ref.data.IpamSubnet
614         description: Network ipam refs data ipam subnets
615         required: false
616         status: SUPPORTED
617       network_ipam_refs_data_ipam_subnets_addr_from_start:
618         type: string
619         description: Network ipam refs data ipam subnets addr from start
620         required: false
621         status: SUPPORTED
622
623 org.openecomp.datatypes.heat.contrailV2.virtual.network.rule.IpamRefData:
624     derived_from: tosca.datatypes.Root
625     description: Network Ipam Ref Data
626     properties:
627       network_ipam_refs_data_ipam_subnets:
628         type: list
629         description: Network ipam refs data ipam subnets
630         required: false
631         status: SUPPORTED
632         entry_schema:
633           type: org.openecomp.datatypes.heat.contrailV2.virtual.network.rule.ref.data.IpamSubnetList
634
635 org.openecomp.datatypes.heat.contrailV2.network.rule.SrcVirtualNetwork:
636     derived_from: tosca.datatypes.Root
637     description: source addresses
638     properties:
639       network_policy_entries_policy_rule_src_addresses_virtual_network:
640         type: string
641         description: Source addresses Virtual network
642         required: false
643         status: SUPPORTED
644
645 org.openecomp.datatypes.heat.contrailV2.network.rule.DstVirtualNetwork:
646     derived_from: tosca.datatypes.Root
647     description: destination addresses
648     properties:
649       network_policy_entries_policy_rule_dst_addresses_virtual_network:
650         type: string
651         description: Destination addresses Virtual network
652         required: false
653         status: SUPPORTED
654
655 org.openecomp.datatypes.heat.contrailV2.network.rule.DstPortPairs:
656     derived_from: tosca.datatypes.Root
657     description: destination port pairs
658     properties:
659       network_policy_entries_policy_rule_dst_ports_start_port:
660         type: string
661         description: Start port
662         required: false
663         status: SUPPORTED
664       network_policy_entries_policy_rule_dst_ports_end_port:
665         type: string
666         description: End port
667         required: false
668         status: SUPPORTED
669
670 org.openecomp.datatypes.heat.contrailV2.network.rule.SrcPortPairs:
671     derived_from: tosca.datatypes.Root
672     description: source port pairs
673     properties:
674       network_policy_entries_policy_rule_src_ports_start_port:
675         type: string
676         description: Start port
677         required: false
678         status: SUPPORTED
679       network_policy_entries_policy_rule_src_ports_end_port:
680         type: string
681         description: End port
682         required: false
683         status: SUPPORTED
684
685 org.openecomp.datatypes.heat.contrailV2.network.rule.ActionList:
686     derived_from: tosca.datatypes.Root
687     description: Action List
688     properties:
689       network_policy_entries_policy_rule_action_list_simple_action:
690         type: string
691         description: Simple Action
692         required: false
693         status: SUPPORTED
694       network_policy_entries_policy_rule_action_list_apply_service:
695         type: list
696         description: Apply Service
697         required: false
698         status: SUPPORTED
699         entry_schema:
700           type: string
701
702 org.openecomp.datatypes.heat.contrailV2.network.rule.Rule:
703     derived_from: tosca.datatypes.Root
704     description: policy rule
705     properties:
706       network_policy_entries_policy_rule_dst_addresses:
707         type: list
708         description: Destination addresses
709         required: false
710         status: SUPPORTED
711         entry_schema:
712           type: org.openecomp.datatypes.heat.contrailV2.network.rule.DstVirtualNetwork
713       network_policy_entries_policy_rule_dst_ports:
714         type: list
715         description: Destination ports
716         required: false
717         status: SUPPORTED
718         entry_schema:
719           type: org.openecomp.datatypes.heat.contrailV2.network.rule.DstPortPairs
720       network_policy_entries_policy_rule_protocol:
721         type: string
722         description: Protocol
723         required: false
724         status: SUPPORTED
725       network_policy_entries_policy_rule_src_addresses:
726         type: list
727         description: Source addresses
728         required: false
729         status: SUPPORTED
730         entry_schema:
731           type: org.openecomp.datatypes.heat.contrailV2.network.rule.SrcVirtualNetwork
732       network_policy_entries_policy_rule_direction:
733         type: string
734         description: Direction
735         required: false
736         status: SUPPORTED
737       network_policy_entries_policy_rule_src_ports:
738         type: list
739         description: Source ports
740         required: false
741         status: SUPPORTED
742         entry_schema:
743           type: org.openecomp.datatypes.heat.contrailV2.network.rule.SrcPortPairs
744       network_policy_entries_policy_rule_action_list:
745         type: org.openecomp.datatypes.heat.contrailV2.network.rule.ActionList
746         description: Action list
747         required: false
748         status: SUPPORTED
749
750 org.openecomp.datatypes.heat.contrailV2.network.rule.RuleList:
751     derived_from: tosca.datatypes.Root
752     description: list of policy rules
753     properties:
754       network_policy_entries_policy_rule:
755         type: list
756         description: Contrail network rule
757         required: false
758         status: SUPPORTED
759         entry_schema:
760           type: org.openecomp.datatypes.heat.contrailV2.network.rule.Rule
761
762 org.openecomp.datatypes.heat.network.contrail.port.StaticRoute:
763     derived_from: tosca.datatypes.Root
764     description: static route
765     properties:
766       prefix:
767         type: string
768         description: Route prefix
769         required: false
770         status: SUPPORTED
771       next_hop:
772         type: string
773         description: Next hop
774         required: false
775         status: SUPPORTED
776       next_hop_type:
777         type: string
778         description: Next hop type
779         required: false
780         status: SUPPORTED
781
782 org.openecomp.datatypes.heat.network.contrail.AddressPair:
783     derived_from: tosca.datatypes.Root
784     description: Address Pair
785     properties:
786       address_mode:
787         type: string
788         description: Address mode active-active or active-standy
789         required: false
790         status: SUPPORTED
791         constraints:
792         - valid_values:
793           - active-active
794           - active-standby
795       prefix:
796         type: string
797         description: IP address prefix
798         required: false
799         status: SUPPORTED
800       mac_address:
801         type: string
802         description: Mac address
803         required: false
804         status: SUPPORTED
805
806 org.openecomp.datatypes.heat.network.contrail.InterfaceData:
807     derived_from: tosca.datatypes.Root
808     description: Interface Data
809     properties:
810       static_routes:
811         type: list
812         description: An ordered list of static routes to be added to this interface
813         required: false
814         status: SUPPORTED
815         entry_schema:
816           type: org.openecomp.datatypes.heat.network.contrail.port.StaticRoute
817       virtual_network:
818         type: string
819         description: Virtual Network for this interface
820         required: true
821         status: SUPPORTED
822       allowed_address_pairs:
823         type: list
824         description: List of allowed address pair for this interface
825         required: false
826         status: SUPPORTED
827         entry_schema:
828           type: org.openecomp.datatypes.heat.network.contrail.AddressPair
829       ip_address:
830         type: string
831         description: IP for this interface
832         required: false
833         status: SUPPORTED
834
835 org.openecomp.datatypes.heat.contrailV2.virtual.machine.interface.Properties:
836     derived_from: tosca.datatypes.Root
837     description: Virtual Machine Interface Properties.
838     properties:
839       virtual_machine_interface_properties_service_interface_type:
840         type: string
841         description: Service Interface Type.
842         required: false
843         status: SUPPORTED
844
845 org.openecomp.datatypes.Root:
846   derived_from: tosca.datatypes.Root
847   description: >
848     The ECOMP root Data Type all other Data Types derive from
849   properties:
850     supplemental_data:
851       type: map
852       entry_schema:
853         description: > 
854            A placeholder for missing properties that would be included in future ecomp model versions.
855            fromat <key>:<value>
856         type: string
857
858 org.openecomp.datatypes.AssignmentRequirements:
859   derived_from: org.openecomp.datatypes.Root
860   properties:
861     is_required:
862       description: |
863         "true" indicates that assignment is required
864       type: boolean
865       default: false
866       required: true
867     count:
868       description: number of assignments required
869       type: integer
870       required: false    
871       
872 org.openecomp.datatypes.network.SubnetAssignments:
873   derived_from: org.openecomp.datatypes.Root
874   properties:
875     ip_network_address_plan:
876       type: string
877       required: false
878       description: Reference to EIPAM, VLAN or other address plan ID used to assign subnets to this network 
879     dhcp_enabled:
880       type: boolean
881       required: false
882       description: \"true\" indicates the network has 1 or more policies
883     ip_version:
884       type: integer
885       constraints:
886         - valid_values: [4,6]
887       required: true
888       description: The IP version of the subnet
889     cidr_mask:
890       type: integer
891       required: true
892       description: The default subnet CIDR mask 
893     min_subnets_count:
894       type: integer
895       default: 1
896       required: true
897       description: Quantity of subnets that must be initially assigned
898
899 org.openecomp.datatypes.network.IPv4SubnetAssignments:
900   derived_from: org.openecomp.datatypes.network.SubnetAssignments
901   properties:
902     use_ipv4:
903       type: boolean
904       required: true
905       description: Indicates IPv4 subnet assignments
906
907 org.openecomp.datatypes.network.IPv6SubnetAssignments:
908   derived_from: org.openecomp.datatypes.network.SubnetAssignments
909   properties:
910     use_ipv6:
911       type: boolean
912       required: true
913       description: Indicates IPv6 subnet assignments
914
915 org.openecomp.datatypes.network.NetworkAssignments:
916   derived_from: org.openecomp.datatypes.Root
917   properties:
918     ecomp_generated_network_assignment:
919       type: boolean
920       required: true
921       default: false
922       description: >
923         \"true\" indicates that the network assignments will be auto-generated by ECOMP
924         \"false\" indicates operator-supplied Network assignments file upload is required (e.g. VID will present prompt to operator to upload operator-supplied Network assignments file).
925     is_shared_network:
926       type: boolean
927       required: true
928       description: \"true\" means this network is shared by multiple Openstack tenants
929     is_external_network:
930       type: boolean
931       required: true
932       default: false
933       description: >
934         \"true\" means this Contrail external network
935     ipv4_subnet_default_assignment:
936       type: org.openecomp.datatypes.network.IPv4SubnetAssignments
937       required: true
938       description: IPv4 defualt subnet assignments
939     ipv6_subnet_default_assignment:
940       type: org.openecomp.datatypes.network.IPv6SubnetAssignments
941       required: true
942       description: IPv6 defualt subnet assignments
943     related_networks:
944       type: list
945       description: Related Networks List.
946       required: false
947       entry_schema:
948         type: org.openecomp.datatypes.network.RelatedNetworksAssignments
949     is_trunked:
950       type: boolean
951       required: true
952       description: \"true\" indicates that network is trunked
953       default: false
954
955 org.openecomp.datatypes.network.ProviderNetwork:
956   derived_from: org.openecomp.datatypes.Root
957   properties:
958     is_provider_network:
959       type: boolean
960       required: true
961       description: \"true\" indicates that this a Neutron provider type of network 
962     physical_network_name:
963       type: string
964       required: false
965       constraints:
966         - valid_values: ["Physnet41", "Physnet42", "Physnet43", "Physnet44", "Physnet21", "Physnet22", "sriovnet1", "sriovnet2", "oam"]
967       description: >
968         Identifies the NUMA processor cluster to which this physical network interface belongs.
969         NUMA instance correlates to the first digit of the Physical Network Name suffix (e.g. \"01\" = NUMA 0, \"11\" = NUMA 1)
970     numa:
971       type: string
972       required: false
973       constraints:
974         - valid_values: ["NUMA 0", "NUMA 1"]
975       description: >
976         PNIC instance within the NUMA processor cluster
977         PNIC Instance correlates to the second digit of the Physical Network Name suffix (e.g. "01" = PNIC 1, "02" = "PNIC 2)
978     pnic_instance:
979       type: integer
980       required: false
981       description: PNIC instance within the NUMA processor cluster
982
983 org.openecomp.datatypes.network.NetworkFlows:
984   derived_from: org.openecomp.datatypes.Root
985   properties:
986     is_network_policy:
987       type: boolean
988       required: false
989       default: false
990       description: \"true\" indicates the network has 1 or more policies
991     network_policy:
992       type: string
993       required: false
994       description: "Identifies the specific Cloud network policy that must be applied to this network (source: from Policy Manager)."
995     is_bound_to_vpn:
996       type: boolean
997       required: false
998       default: false
999       description: \"true\" indicates the network has 1 or more vpn bindings
1000     vpn_binding:
1001       type: string
1002       required: false
1003       description: "Identifies the specific VPN Binding entry in A&AI that must be applied when creating this network (source: A&AI)"
1004
1005 org.openecomp.datatypes.network.VlanRequirements:
1006   derived_from: org.openecomp.datatypes.Root
1007   properties:
1008     vlan_range_plan:
1009       type: string
1010       required: true
1011       description: reference to a vlan range plan
1012     vlan_type:
1013       type: string
1014       required: true
1015       constraints:
1016         - valid_values: ["c-tag", "s-tag"]
1017       description: identifies the vlan type (e.g., c-tag)
1018     vlan_count:
1019       type: integer
1020       required: true
1021       description: identifies the number of vlan tags to assign to the CP from the plan
1022
1023 org.openecomp.datatypes.network.IpRequirements:
1024   derived_from: org.openecomp.datatypes.Root
1025   properties:
1026     ip_version:
1027       type: integer
1028       required: true
1029       constraints:
1030         - valid_values:
1031           - 4
1032           - 6
1033     ip_count:
1034       description: identifies the number of ip address to assign to the CP from the plan
1035       type: integer
1036       required: false
1037     floating_ip_count:
1038       type: integer
1039       required: false
1040     subnet_role:
1041       type: string
1042       required: false
1043     assingment_method:
1044       type: string
1045       required: true
1046       constraints:
1047         - valid_values:
1048           - fixed
1049           - dhcp
1050     dhcp_enabled:
1051       type: boolean
1052       required: false
1053     ip_count_required:
1054       description: identifies the number of ip address to assign to the CP from the plan
1055       type: org.openecomp.datatypes.AssignmentRequirements
1056       required: false
1057     floating_ip_count_required:
1058       type: org.openecomp.datatypes.AssignmentRequirements
1059       required: false 
1060
1061 org.openecomp.datatypes.network.MacAssignments:
1062   derived_from: org.openecomp.datatypes.Root
1063   properties:
1064     mac_range_plan:
1065       type: string
1066       required: true
1067       description: reference to a MAC address range plan
1068     mac_count:
1069       type: integer
1070       required: true
1071       description: identifies the number of MAC addresses to assign to the CP from the plan
1072
1073 org.openecomp.datatypes.EcompHoming:
1074   derived_from: org.openecomp.datatypes.Root
1075   properties:
1076     ecomp_selected_instance_node_target:
1077       type: boolean
1078       required: true
1079       default: false
1080       description: >
1081         \"true\" indicates that the target deployment node for this instance will be auto-selected by ECOMP
1082         \"false\" indicates operator-supplied instance target deployment node required (e.g. VID will present a prompt to operator and collect the
1083         operator-selected target node for the deployment of this Network instance).
1084     homing_policy:
1085       type: string
1086       required: false
1087       description: Referenc to a service level homing policy that ECOMP will use for instance deployment target node
1088     instance_node_target:
1089       type: string
1090       required: false
1091       description: Instance target deployment node
1092
1093 org.openecomp.datatypes.EcompNaming:
1094   derived_from: org.openecomp.datatypes.Root
1095   properties:
1096     ecomp_generated_naming:
1097       type: boolean
1098       required: true
1099       default: true
1100       description: >
1101         \"true\" indicates that the name for the instance will be auto-generated by ECOMP.
1102         \"false\" indicates operator-supplied name required (e.g. VID will present prompt to operator and collect the operator-supplied instance name).
1103     naming_policy:
1104       type: string
1105       required: false
1106       description: Referenc to naming policy that ECOMP will use when the name is auto-generated
1107
1108 org.openecomp.datatypes.network.MacRequirements:
1109   derived_from: org.openecomp.datatypes.Root
1110   properties:
1111     mac_range_plan:
1112       description: reference to a MAC address range plan
1113       type: string
1114       required: false
1115     mac_count:
1116       description: identifies the number of MAC addresses to assign to the CP from the plan
1117       type: integer
1118       required: false
1119     mac_count_required:
1120       description: identifies the number of MAC addresses to assign to the CP from the plan
1121       type: org.openecomp.datatypes.AssignmentRequirements
1122
1123 org.openecomp.datatypes.heat.contrailV2.virtual.machine.subInterface.AddressPairIp:
1124   derived_from: tosca.datatypes.Root
1125   description: Virtual Machine Sub Interface Address Pair IP.
1126   properties:
1127     ip_prefix:
1128       type: string
1129       description: IP Prefix.
1130       required: false
1131       status: SUPPORTED
1132     ip_prefix_len:
1133       type: integer
1134       description: IP Prefix Len.
1135       required: false
1136       status: SUPPORTED
1137
1138 org.openecomp.datatypes.heat.contrailV2.virtual.machine.subInterface.MacAddress:
1139   derived_from: tosca.datatypes.Root
1140   description: Virtual Machine Sub Interface Mac Address.
1141   properties:
1142     mac_address:
1143       type: list
1144       description: Mac Addresses List.
1145       required: false
1146       status: SUPPORTED
1147       entry_schema:
1148         type: string
1149
1150 org.openecomp.datatypes.heat.contrailV2.virtual.machine.subInterface.Properties:
1151   derived_from: tosca.datatypes.Root
1152   description: Virtual Machine Sub Interface VLAN Properties.
1153   properties:
1154     sub_interface_vlan_tag:
1155       type: string
1156       description: Sub Interface VLAN Tag.
1157       required: false
1158       status: SUPPORTED
1159
1160 org.openecomp.datatypes.heat.contrailV2.virtual.machine.subInterface.AddressPair:
1161   derived_from: tosca.datatypes.Root
1162   description: Virtual Machine Sub Interface Address Pair.
1163   properties:
1164     address_mode:
1165       type: string
1166       description: Address Mode.
1167       required: false
1168       status: SUPPORTED
1169     ip:
1170       type: org.openecomp.datatypes.heat.contrailV2.virtual.machine.subInterface.AddressPairIp
1171       description: IP.
1172       required: false
1173       status: SUPPORTED
1174     mac:
1175       type: string
1176       description: Mac.
1177       required: false
1178       status: SUPPORTED
1179
1180 org.openecomp.datatypes.heat.contrailV2.virtual.machine.subInterface.AddressPairs:
1181   derived_from: tosca.datatypes.Root
1182   description: Virtual Machine Sub Interface Address Pairs.
1183   properties:
1184     allowed_address_pair:
1185       type: list
1186       description: Addresses pair List.
1187       required: false
1188       status: SUPPORTED
1189       entry_schema:
1190         type: org.openecomp.datatypes.heat.contrailV2.virtual.machine.subInterface.AddressPair
1191
1192 org.openecomp.datatypes.Naming:
1193   derived_from: org.openecomp.datatypes.Root
1194   properties:
1195       ecomp_generated_naming:
1196         description: |
1197           "true" indicates that the name for the instance will be auto-generated by ECOMP. "false" indicates operator-supplied name required (e.g. VID will present prompt to operator and collect the operator-supplied instance name).
1198         type: boolean
1199         default: true
1200         required: true
1201       naming_policy:
1202         description: Reference to naming policy that ECOMP will use when the name is auto-generated
1203         type: string
1204         required: false
1205       instance_name:
1206         description: indicates operator-supplied name required (e.g. VID will present prompt to operator and collect the operator-supplied instance name).
1207         type: string
1208         required: false
1209
1210