--- /dev/null
+ <context xmlns="urn:onf:otcc:yang:tapi-common">
+ <uuid>6f69da3a-a243-4058-974e-baf11c357b7a</uuid>
+ <name>
+ <value-name>test</value-name>
+ <value>context</value>
+ </name>
+ <topology-context xmlns="urn:onf:otcc:yang:tapi-topology">
+ <topology>
+ <uuid>7adfee73-44be-4813-a0dc-89f657f0a436</uuid>
+{{ range $node := .Values.nodes }}
+ <node>
+ <uuid>{{ $node.uuid }}</uuid>
+ <owned-node-edge-point>
+ <uuid>{{ $node.nodeEdgePointUuid }}</uuid>
+ <layer-protocol-name>ETH</layer-protocol-name>
+ <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>
+ <link-port-direction>BIDIRECTIONAL</link-port-direction>
+ <link-port-role>SYMMETRIC</link-port-role>
+ <name>
+ <value-name>interface-name</value-name>
+ <value>{{ $node.interfaceName }}</value>
+ </name>
+ <name>
+ <value-name>interface-description</value-name>
+ <value>{{ $node.interfaceDescription }}</value>
+ </name>
+ <administrative-state>LOCKED</administrative-state>
+ <operational-state>ENABLED</operational-state>
+ <lifecycle-state>INSTALLED</lifecycle-state>
+
+ </owned-node-edge-point>
+ <layer-protocol-name>ETH</layer-protocol-name>
+ <name>
+ <value-name>device-name</value-name>
+ <value>{{ $node.name }}</value>
+ </name>
+ <administrative-state>LOCKED</administrative-state>
+ <operational-state>ENABLED</operational-state>
+ <lifecycle-state>INSTALLED</lifecycle-state>
+ <cost-characteristic>
+ <cost-name>cost</cost-name>
+ <cost-value>value-1</cost-value>
+ <cost-algorithm>alg1</cost-algorithm>
+ </cost-characteristic>
+ <latency-characteristic>
+ <traffic-property-name>property-1</traffic-property-name>
+ <fixed-latency-characteristic>latency-1</fixed-latency-characteristic>
+ <queing-latency-characteristic>queue-1</queing-latency-characteristic>
+ <jitter-characteristic>jitter-1</jitter-characteristic>
+ <wander-characteristic>wander-1</wander-characteristic>
+ </latency-characteristic>
+ </node>
+{{ end }}
+{{ $topologyUuid := .Values.topologyUuid }} {{ $nodes := .Values.nodes }}
+{{ range $link := .Values.links }}
+ <link>
+ <uuid>{{ $link.uuid }}</uuid>
+ <node-edge-point>
+ <topology-uuid>{{ $topologyUuid }}</topology-uuid>
+ {{ range $duNode := $nodes }}{{ if eq $duNode.name $link.duNode}}
+ <node-uuid>{{ $duNode.uuid }}</node-uuid>
+ <node-edge-point-uuid>{{ $duNode.nodeEdgePointUuid }}</node-edge-point-uuid>
+ {{ end }}{{ end }}
+ </node-edge-point>
+ <node-edge-point>
+ <topology-uuid>{{ $topologyUuid }}</topology-uuid>
+ {{ range $ruNode := $nodes }}{{ if eq $ruNode.name $link.ruNode }}
+ <node-uuid>{{ $ruNode.uuid }}</node-uuid>
+ <node-edge-point-uuid>{{ $ruNode.nodeEdgePointUuid }}</node-edge-point-uuid>
+ {{ end }}{{ end }}
+ </node-edge-point>
+ <layer-protocol-name>ETH</layer-protocol-name>
+ <direction>BIDIRECTIONAL</direction>
+ <name>
+ <value-name>link-name</value-name>
+ <value>{{ $link.duNode }}-to-{{ $link.ruNode }}</value>
+ </name>
+ <administrative-state>LOCKED</administrative-state>
+ <operational-state>ENABLED</operational-state>
+ <lifecycle-state>INSTALLED</lifecycle-state>
+ <cost-characteristic>
+ <cost-name>cost</cost-name>
+ <cost-value>value-1</cost-value>
+ <cost-algorithm>alg1</cost-algorithm>
+ </cost-characteristic>
+ <latency-characteristic>
+ <traffic-property-name>property-1</traffic-property-name>
+ <fixed-latency-characteristic>latency-1</fixed-latency-characteristic>
+ <queing-latency-characteristic>queue-1</queing-latency-characteristic>
+ <jitter-characteristic>jitter-1</jitter-characteristic>
+ <wander-characteristic>wander-1</wander-characteristic>
+ </latency-characteristic>
+ <risk-characteristic>
+ <risk-characteristic-name>risk-name</risk-characteristic-name>
+ <risk-identifier-list>risk-1</risk-identifier-list>
+ </risk-characteristic>
+ <validation-mechanism>
+ <validation-mechanism>mechanism-1</validation-mechanism>
+ <layer-protocol-adjacency-validated>validated</layer-protocol-adjacency-validated>
+ <validation-robustness>very-robust</validation-robustness>
+ </validation-mechanism>
+ <transitioned-layer-protocol-name>layer-protocol-1---should-it-be-an-uuid?</transitioned-layer-protocol-name>
+ <transitioned-layer-protocol-name>layer-protocol-2---should-it-be-an-uuid?</transitioned-layer-protocol-name>
+ </link>
+{{ end }}
+ <layer-protocol-name>ETH</layer-protocol-name>
+ <name>
+ <value-name>test</value-name>
+ <value>topology</value>
+ </name>
+ </topology>
+ </topology-context>
+ </context>