Commit 3deac099 authored by carignani's avatar carignani
Browse files

Merge branch 'Yang@2020-01-01' into 'master'

Yang@2020-01-01

See merge request 3GPP/SA5/data-models!1
parents 02404bfd 725a5d17
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -9,3 +9,9 @@ Branch {+Master+} validation status:

[![pipeline status](https://forge.etsi.org/gitlab/3GPP/SA5/data-models/badges/master/pipeline.svg)](https://forge.etsi.org/gitlab/3GPP/SA5/data-models/commits/master)

## Data models validation

The YANG data models in the present projects are validated by an automated CI agent. Learn more at:

* [Jenkins job run for this project](https://forge.etsi.org/jenkins/job/3GPP/view/SA5%20Data%20Models%20validation/)
* [Validation scripts repository](https://forge.etsi.org/rep/forge-tools/3gpp-scripts)
 No newline at end of file

json-schema/README.md

0 → 100755
+1 −0
Original line number Diff line number Diff line
Folder for all 3GPP SA5 JsonSchema
 No newline at end of file

xsd/README.md

0 → 100755
+1 −0
Original line number Diff line number Diff line
Folder for all 3GPP SA5 XML Schema (XSD) files
 No newline at end of file

yang-models/README.md

0 → 100755
+7 −0
Original line number Diff line number Diff line
Folder for all 3GPP SA5 YANG modules and submodules (YAMs)
A subfolder for used external YANG modules is included.

All commited YANG modules MUST pass the 
  "pyang --strict -p external-yams _3gpp-*.yang" 
  validation command without errors.
+69 −0
Original line number Diff line number Diff line
module _3gpp-5g-common-yang-types {
  yang-version 1.1;
  namespace "urn:3gpp:sa5:_3gpp-5g-common-yang-types";
  prefix "types5g3gpp";
  
  import _3gpp-common-yang-types { prefix types3gpp; }

  organization "3GPP SA5";
  description "The model defines common types for 5G networks and 
    network slicing.";
  reference "3GPP TS 28.541";

  revision 2019-10-20 {
    description "Initial version.";
    reference "Based on
      3GPP TS 28.541 V16.X.XX";
  }
 
  typedef CommModelType {
    reference "3GPP TS 23501";
    type enumeration {
      enum DIRECT_COMMUNICATION_WO_NRF {
        value 0;
        description "Directly communicate to other pre-configured NF service.";
      }

      enum DIRECT_COMMUNICATION_WITH_NRF {
        value 1;
        description "Directly communicate to other NF service discovered by NRF.";
      }
	  
      enum INDIRECT_COMMUNICATION_WO_DEDICATED_DISCOVERY {
        value 2;
        description "Communicate to pre-configured other NF service through SCP as a proxy.";
      }

      enum INDIRECT_COMMUNICATION_WITH_DEDICATED_DISCOVERY {
        value 3;
        description "Communication to NF service discovered by NRF through SCP as a proxy.";
      }

    }
  }
  
  grouping CommModel {
    leaf groupId {
      type uint16;   
    }
    leaf commModelType {
       type CommModelType;
    }  
    leaf-list targetNFServiceList {
      type types3gpp:DistinguishedName;   
    }
    leaf commModelConfiguration {
       type string;
    }  
  }
  
  grouping SupportedFunc {
    leaf function {
      type string;   
    }
    leaf policy {
       type string;
    }  
  }

}
 No newline at end of file
Loading