87927ca25d902c196f3193690bbd9ba9c21a6e7a
[it/dep.git] / smo-install / oran_oom / topology-server / resources / config / tapi-common-operational.xml
1   <context xmlns="urn:onf:otcc:yang:tapi-common">
2     <uuid>6f69da3a-a243-4058-974e-baf11c357b7a</uuid>
3     <name>
4       <value-name>test</value-name>
5       <value>context</value>
6     </name>
7     <topology-context xmlns="urn:onf:otcc:yang:tapi-topology">
8       <topology>
9         <uuid>7adfee73-44be-4813-a0dc-89f657f0a436</uuid>
10 {{ range $node := .Values.nodes }}
11         <node>
12           <uuid>{{ $node.uuid }}</uuid>
13           <owned-node-edge-point>
14             <uuid>{{ $node.nodeEdgePointUuid }}</uuid>
15             <layer-protocol-name>ETH</layer-protocol-name>
16             <supported-cep-layer-protocol-qualifier xmlns:tapi-dsr="urn:onf:otcc:yang:tapi-dsr">tapi-dsr:DIGITAL_SIGNAL_TYPE_GigE</supported-cep-layer-protocol-qualifier>
17             <link-port-direction>BIDIRECTIONAL</link-port-direction>
18             <link-port-role>SYMMETRIC</link-port-role>
19             <name>
20               <value-name>interface-name</value-name>
21               <value>{{ $node.interfaceName }}</value>
22             </name>
23             <name>
24               <value-name>interface-description</value-name>
25               <value>{{ $node.interfaceDescription }}</value>
26             </name>
27             <administrative-state>LOCKED</administrative-state>
28             <operational-state>ENABLED</operational-state>
29             <lifecycle-state>INSTALLED</lifecycle-state>
30
31           </owned-node-edge-point>
32           <layer-protocol-name>ETH</layer-protocol-name>
33           <name>
34             <value-name>device-name</value-name>
35             <value>{{ $node.name }}</value>
36           </name>
37           <administrative-state>LOCKED</administrative-state>
38           <operational-state>ENABLED</operational-state>
39           <lifecycle-state>INSTALLED</lifecycle-state>
40           <cost-characteristic>
41             <cost-name>cost</cost-name>
42             <cost-value>value-1</cost-value>
43             <cost-algorithm>alg1</cost-algorithm>
44           </cost-characteristic>
45           <latency-characteristic>
46             <traffic-property-name>property-1</traffic-property-name>
47             <fixed-latency-characteristic>latency-1</fixed-latency-characteristic>
48             <queing-latency-characteristic>queue-1</queing-latency-characteristic>
49             <jitter-characteristic>jitter-1</jitter-characteristic>
50             <wander-characteristic>wander-1</wander-characteristic>
51           </latency-characteristic>
52         </node>
53 {{ end }}
54 {{ $topologyUuid := .Values.topologyUuid }} {{ $nodes := .Values.nodes }}
55 {{ range $link := .Values.links }}
56         <link>
57           <uuid>{{ $link.uuid }}</uuid>
58           <node-edge-point>
59             <topology-uuid>{{ $topologyUuid }}</topology-uuid>
60             {{ range $duNode := $nodes }}{{ if eq $duNode.name $link.duNode}}
61             <node-uuid>{{ $duNode.uuid }}</node-uuid>
62             <node-edge-point-uuid>{{ $duNode.nodeEdgePointUuid }}</node-edge-point-uuid>
63             {{ end }}{{ end }}
64           </node-edge-point>
65           <node-edge-point>
66             <topology-uuid>{{ $topologyUuid }}</topology-uuid>
67             {{ range $ruNode := $nodes }}{{ if eq $ruNode.name $link.ruNode }}
68             <node-uuid>{{ $ruNode.uuid }}</node-uuid>
69             <node-edge-point-uuid>{{ $ruNode.nodeEdgePointUuid }}</node-edge-point-uuid>
70             {{ end }}{{ end }}
71           </node-edge-point>
72           <layer-protocol-name>ETH</layer-protocol-name>
73           <direction>BIDIRECTIONAL</direction>
74           <name>
75             <value-name>link-name</value-name>
76             <value>{{ $link.duNode }}-to-{{ $link.ruNode }}</value>
77           </name>
78           <administrative-state>LOCKED</administrative-state>
79           <operational-state>ENABLED</operational-state>
80           <lifecycle-state>INSTALLED</lifecycle-state>
81           <cost-characteristic>
82             <cost-name>cost</cost-name>
83             <cost-value>value-1</cost-value>
84             <cost-algorithm>alg1</cost-algorithm>
85           </cost-characteristic>
86           <latency-characteristic>
87             <traffic-property-name>property-1</traffic-property-name>
88             <fixed-latency-characteristic>latency-1</fixed-latency-characteristic>
89             <queing-latency-characteristic>queue-1</queing-latency-characteristic>
90             <jitter-characteristic>jitter-1</jitter-characteristic>
91             <wander-characteristic>wander-1</wander-characteristic>
92           </latency-characteristic>
93           <risk-characteristic>
94             <risk-characteristic-name>risk-name</risk-characteristic-name>
95             <risk-identifier-list>risk-1</risk-identifier-list>
96           </risk-characteristic>
97           <validation-mechanism>
98             <validation-mechanism>mechanism-1</validation-mechanism>
99             <layer-protocol-adjacency-validated>validated</layer-protocol-adjacency-validated>
100             <validation-robustness>very-robust</validation-robustness>
101           </validation-mechanism>
102           <transitioned-layer-protocol-name>layer-protocol-1---should-it-be-an-uuid?</transitioned-layer-protocol-name>
103           <transitioned-layer-protocol-name>layer-protocol-2---should-it-be-an-uuid?</transitioned-layer-protocol-name>
104         </link>
105 {{ end }}
106         <layer-protocol-name>ETH</layer-protocol-name>
107         <name>
108           <value-name>test</value-name>
109           <value>topology</value>
110         </name>
111       </topology>
112     </topology-context>
113   </context>