- <switch test='`$vidx`'>\r
- <outcome value='0'>\r
- <set>\r
- <parameter name='tmp.oofsolutions-first-src-pnf-name' value="`$tmp.aai.cross-link.relationship-list.relationship[0].relationship-data[0].relationship-value`" />\r
- <parameter name='tmp.oofsolutions-first-src-ltpId' value="`$tmp.aai.cross-link.relationship-list.relationship[0].relationship-data[1].relationship-value`" />\r
- </set>\r
- </outcome>\r
- <outcome value='`$otn-oof.solutions_length - 1`'>\r
- <set>\r
- <parameter name='tmp.oofsolutions-last-dst-pnf-name' value="`$tmp.aai.cross-link.relationship-list.relationship[1].relationship-data[0].relationship-value`" />\r
- <parameter name='tmp.oofsolutions-last-dst-ltpId' value="`$tmp.aai.cross-link.relationship-list.relationship[1].relationship-data[1].relationship-value`" />\r
- </set>\r
+ <switch test="`length($tmp.aai.cross-link.relationship-list.relationship) == 0`">\r
+ <outcome value="true"/>\r
+ <outcome value="false">\r
+ <switch test="`$vidx`">\r
+ <outcome value="0">\r
+ <for index="lridx" start="0" end="`$tmp.aai.cross-link.relationship-list.relationship_length`">\r
+ <switch test="`$tmp.aai.cross-link.relationship-list.relationship[$lridx].related-to`">\r
+ <outcome value="p-interface">\r
+ <block>\r
+ <set>\r
+ <parameter name="tmp.oofsolutions-first-src-pnf-name" value="`$tmp.aai.cross-link.relationship-list.relationship[$lridx].relationship-data[0].relationship-value`"/>\r
+ <parameter name="tmp.oofsolutions-first-src-ltpId" value="`$tmp.aai.cross-link.relationship-list.relationship[$lridx].relationship-data[1].relationship-value`"/>\r
+ </set>\r
+ <break/>\r
+ </block>\r
+ </outcome>\r
+ </switch>\r
+ </for>\r
+ </outcome>\r
+ <outcome value="`$otn-oof.solutions_length - 1`">\r
+ <for index="lridx" start="0" end="`$tmp.aai.cross-link.relationship-list.relationship_length`">\r
+ <switch test="`$tmp.aai.cross-link.relationship-list.relationship[$lridx].related-to`">\r
+ <outcome value="p-interface">\r
+ <block>\r
+ <set>\r
+ <parameter name="tmp.oofsolutions-last-dst-pnf-name" value="`$tmp.aai.cross-link.relationship-list.relationship[$lridx + 1].relationship-data[0].relationship-value`"/>\r
+ <parameter name="tmp.oofsolutions-last-dst-ltpId" value="`$tmp.aai.cross-link.relationship-list.relationship[$lridx + 1].relationship-data[1].relationship-value`"/>\r
+ </set>\r
+ <break/>\r
+ </block>\r
+ </outcome>\r
+ </switch>\r
+ </for>\r
+ </outcome>\r
+ </switch>\r