X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?p=sim%2Fo1-interface.git;a=blobdiff_plain;f=ntsimulator%2Fdeploy%2Fo-ran%2Fyang%2Fo-ran-processing-element.yang;fp=ntsimulator%2Fyang%2Fo-ran%2Fru-fh%2Fo-ran-processing-element.yang;h=c67fb87fcbbf506ab7da2df6f2ef250d5a1db074;hp=d0dc5f6c47e430162374ea7ef8351fa561df9ae9;hb=f1d5c9198acde7a7ce296490087cad37e008f688;hpb=f2d8f1002fa93848c80a88e5658db4816cba3020 diff --git a/ntsimulator/yang/o-ran/ru-fh/o-ran-processing-element.yang b/ntsimulator/deploy/o-ran/yang/o-ran-processing-element.yang similarity index 89% rename from ntsimulator/yang/o-ran/ru-fh/o-ran-processing-element.yang rename to ntsimulator/deploy/o-ran/yang/o-ran-processing-element.yang index d0dc5f6..c67fb87 100644 --- a/ntsimulator/yang/o-ran/ru-fh/o-ran-processing-element.yang +++ b/ntsimulator/deploy/o-ran/yang/o-ran-processing-element.yang @@ -180,12 +180,15 @@ module o-ran-processing-element { description "the interface name "; } container aliasmac-flow { - when "../../../transport-session-type = 'ALIASMAC-INTERFACE'"; + when "../../../transport-session-type = 'ALIASMAC-INTERFACE'"; if-feature o-ran-int:ALIASMAC-BASED-CU-PLANE; + //checkAS add presence, because it has mandatory child + presence "Contains AliasMAC details."; description "leafs for virtual mac type data flows"; leaf ru-aliasmac-address { type leafref { - path "/if:interfaces/if:interface[if:name = current()/../../interface-name]/o-ran-int:alias-macs"; + //checkAL added o-ran-elements: before interface-name + path "/if:interfaces/if:interface[if:name = current()/../../o-ran-elements:interface-name]/o-ran-int:alias-macs"; } mandatory true; description @@ -193,7 +196,8 @@ module o-ran-processing-element { } leaf vlan-id { type leafref { - path "/if:interfaces/if:interface[if:name = current()/../../interface-name]/o-ran-int:vlan-id"; + //checkAL added o-ran-elements: before interface-name + path "/if:interfaces/if:interface[if:name = current()/../../o-ran-elements:interface-name]/o-ran-int:vlan-id"; } description "O-RU's VLAN-ID used for alias MAC based flow"; @@ -207,10 +211,13 @@ module o-ran-processing-element { } container eth-flow { when "../../../transport-session-type = 'ETH-INTERFACE'"; + //checkAS add presence, because it has mandatory child + presence "Contains ETH details."; description "leafs for mac + vlan-id type data flows"; leaf ru-mac-address { type leafref { - path "/if:interfaces/if:interface[if:name = current()/../../interface-name]/o-ran-int:mac-address"; + //checkAL added o-ran-elements: before interface-name + path "/if:interfaces/if:interface[if:name = current()/../../o-ran-elements:interface-name]/o-ran-int:mac-address"; } mandatory true; description @@ -218,7 +225,8 @@ module o-ran-processing-element { } leaf vlan-id { type leafref { - path "/if:interfaces/if:interface[if:name = current()/../../interface-name]/o-ran-int:vlan-id"; + //checkAL added o-ran-elements: before interface-name + path "/if:interfaces/if:interface[if:name = current()/../../o-ran-elements:interface-name]/o-ran-int:vlan-id"; } mandatory true; description @@ -233,17 +241,21 @@ module o-ran-processing-element { } container udpip-flow { when "../../../transport-session-type = 'UDPIP-INTERFACE'"; + //checkAL added presence + presence "contains updip details"; description "leafs for UDP/IP type data flows"; choice address { leaf ru-ipv4-address { type leafref { - path "/if:interfaces/if:interface[if:name = current()/../../interface-name]/ip:ipv4/ip:address/ip:ip"; + //checkAL added o-ran-elements: before interface-name + path "/if:interfaces/if:interface[if:name = current()/../../o-ran-elements:interface-name]/ip:ipv4/ip:address/ip:ip"; } description "O-RU's IPv4 address"; } leaf ru-ipv6-address { type leafref { - path "/if:interfaces/if:interface[if:name = current()/../../interface-name]/ip:ipv6/ip:address/ip:ip"; + //checkAL added o-ran-elements: before interface-name + path "/if:interfaces/if:interface[if:name = current()/../../o-ran-elements:interface-name]/ip:ipv6/ip:address/ip:ip"; } description "O-RU's IPv6 address"; }