Commit 175953a1 authored by Balazs Lengyel's avatar Balazs Lengyel

Added all YANG files according to the TS 28.623-g20 and 28.541-g30

parent 58d9fe4e
Pipeline #2287 failed with stage
in 0 seconds
Folder for all 3GPP SA5 JsonSchema
\ No newline at end of file
Folder for all 3GPP SA5 XML Schema (XSD) files
\ No newline at end of file
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.
module _3gpp-5g-common-yang-types {
yang-version 1.1;
namespace "urn:3gpp:sa5:_3gpp-5g-common-yang-types";
prefix "types5g3gpp";
import ietf-inet-types { prefix inet; }
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 DistinguishedName;
}
leaf commModelConfiguration {
type string;
}
}
grouping SupportedFunc {
leaf function {
type string;
}
leaf policy {
type string;
}
}
}
\ No newline at end of file
module _3gpp-5gc-nrm-affunction {
yang-version 1.1;
namespace urn:3gpp:sa5:_3gpp-5gc-nrm-affunction;
prefix af3gpp;
import _3gpp-common-managed-function { prefix mf3gpp; }
import _3gpp-common-managed-element { prefix me3gpp; }
import _3gpp-common-top { prefix top3gpp; }
organization "3gpp SA5";
description "This IOC is defined only to describe the IOCs representing
its interaction interface with 5GC (i.e. EP_Rx and EP_N5).
It has no attributes defined.";
reference "3GPP TS 28.541";
revision 2019-10-28 { reference S5-193518 ; }
revision 2019-05-15 {
description "initial revision";
}
grouping AFFunctionGrp {
uses mf3gpp:ManagedFunctionGrp;
}
augment "/me3gpp:ManagedElement" {
list AFFunction {
description "5G Core AF Function";
reference "3GPP TS 28.541";
key id;
uses top3gpp:Top_Grp;
container attributes {
uses AFFunctionGrp;
}
}
}
}
\ No newline at end of file
module _3gpp-5gc-nrm-amffunction {
yang-version 1.1;
namespace urn:3gpp:sa5:_3gpp-5gc-nrm-amffunction;
prefix amf3gpp;
import _3gpp-common-managed-function { prefix mf3gpp; }
import _3gpp-common-managed-element { prefix me3gpp; }
import _3gpp-common-yang-types { prefix types3gpp; }
import ietf-inet-types { prefix inet; }
import _3gpp-common-top { prefix top3gpp; }
description "AMFFunction derived from basic ManagedFunction.";
revision 2019-10-25 { reference "S5-194457 S5-193518"; }
revision 2019-05-31 {
description "Ericsson refactoring.";
}
revision 2018-08-07 {
description "Initial revision";
}
grouping AMFFunctionGrp {
uses mf3gpp:ManagedFunctionGrp;
list pLMNIdList {
min-elements 1;
description "A list of PLMN identifiers (Mobile Country Code and Mobile Network Code).";
key "mcc mnc";
uses types3gpp:PLMNId;
}
container aMFIdentifier {
presence true;
description "An AMF identifier, comprising an AMF Region ID, an AMF Set ID and an AMF Pointer.";
uses types3gpp:AmfIdentifier;
}
leaf sBIFQDN {
description "The FQDN of the registered NF instance in the service-based interface.";
type inet:domain-name;
}
leaf-listsNSSAIList {
min-elements 0; // conditionally mandatory if network slicing feature is supported
description "List of S-NSSAIs the managed object is capable of supporting.
(Single Network Slice Selection Assistance Information)
An S-NSSAI has an SST (Slice/Service type) and an optional SD
(Slice Differentiator) field.";
reference "3GPP TS 23.003";
type types3gpp:SNssai;
}
list managedNFProfile {
key idx;
min-elements 1;
uses types3gpp:ManagedNFProfile;
}
list commModelList {
min-elements 1;
key "groupId";
uses types5g3gpp:CommModel;
}
}
augment "/me3gpp:ManagedElement" {
list AMFFunction {
description "5G Core AMF Function";
reference "3GPP TS 28.541";
key id;
uses top3gpp:Top_Grp;
container attributes {
uses AMFFunctionGrp;
}
uses mf3gpp:ManagedFunctionContainedClasses;
}
}
}
\ No newline at end of file
module _3gpp-5gc-nrm-amfregion {
yang-version 1.1;
namespace urn:3gpp:sa5:_3gpp-5gc-nrm-amfregion;
prefix amfr3gpp;
import _3gpp-common-yang-types { prefix types3gpp; }
import _3gpp-common-subnetwork { prefix subnet3gpp; }
import _3gpp-common-top { prefix top3gpp; }
import _3gpp-common-managed-function { prefix mf3gpp; }
description "This IOC represents the AMF Region which consists one or multiple AMF Sets.";
revision 2019-10-28 { reference S5-193518 ; }
revision 2019-06-11 {
description "Ericsson refactoring.";
}
grouping AMFRegionGrp {
uses mf3gpp:ManagedFunctionGrp;
list pLMNIdList {
description "List of at most six entries of PLMN Identifiers, but at least one (the primary PLMN Id).
The PLMN Identifier is composed of a Mobile Country Code (MCC) and a Mobile Network Code (MNC).";
min-elements 1;
max-elements 6;
key "mcc mnc";
uses types3gpp:PLMNId;
}
leaf-list nRTACList {
description "List of Tracking Area Codes (legacy TAC or extended TAC)
where the represented management function is serving.";
reference "TS 38.413 clause 9.3.3.10";
min-elements 1;
config false;
type types3gpp:Tac;
}
leaf-list sNSSAIList {
description "List of S-NSSAIs the managed object is capable of supporting.
(Single Network Slice Selection Assistance Information)
An S-NSSAI has an SST (Slice/Service type) and an optional SD
(Slice Differentiator) field.";
//conditional support only if the network slicing feature is supported.
reference "3GPP TS 23.003";
type types3gpp:SNssai;
}
leaf aMFRegionId {
description "Represents the AMF Region ID, which identifies the region.";
mandatory true;
type types3gpp:AmfRegionId;
}
leaf-list aMFSet {
description "The AMFSet that the AFMRegion is associated with.";
min-elements 1;
type instance-identifier;
}
}
augment "/subnet3gpp:SubNetwork" {
list AMFRegion {
description "5G Core AMFRegion IOC";
reference "3GPP TS 28.541";
key id;
uses top3gpp:Top_Grp;
container attributes {
uses AMFRegionGrp;
}
uses mf3gpp:ManagedFunctionContainedClasses;
}
}
}
\ No newline at end of file
module _3gpp-5gc-nrm-amfset {
yang-version 1.1;
namespace urn:3gpp:sa5:_3gpp-5gc-nrm-amfset;
prefix amfset3gpp;
import _3gpp-common-yang-types { prefix types3gpp; }
import _3gpp-common-subnetwork { prefix subnet3gpp; }
import _3gpp-common-top { prefix top3gpp; }
import _3gpp-common-managed-function { prefix mf3gpp; }
description "This IOC represents the AMF Set which consists of some AMFs that serve a given area and Network Slice.";
revision 2019-10-28 { reference S5-193518 ; }
revision 2019-06-11 {
description "Ericsson refactoring.";
}
grouping AMFSetGrp {
uses mf3gpp:ManagedFunctionGrp;
list pLMNIdList {
description "List of at most six entries of PLMN Identifiers, but at least one (the primary PLMN Id).
The PLMN Identifier is composed of a Mobile Country Code (MCC) and a Mobile Network Code (MNC).";
min-elements 1;
max-elements 6;
key "mcc mnc";
uses types3gpp:PLMNId;
}
leaf-list nRTACList {
description "List of Tracking Area Codes (legacy TAC or extended TAC)
where the represented management function is serving.";
reference "TS 38.413 clause 9.3.3.10";
min-elements 1;
config false;
type types3gpp:Tac;
}
leaf-list sNSSAIList {
description "List of S-NSSAIs the managed object is capable of supporting.
(Single Network Slice Selection Assistance Information)
An S-NSSAI has an SST (Slice/Service type) and an optional SD
(Slice Differentiator) field.";
//conditional support only if the network slicing feature is supported.
reference "3GPP TS 23.003";
type types3gpp:SNssai;
}
leaf aMFRegion {
description "The AMFRegion that the AFMSet is associated with.";
type instance-identifier;
}
leaf-list aMFSetMemberList {
description "List of DNs of AMFFunction instances of the AMFSet.";
min-elements 1;
max-elements 1;
type types3gpp:DistinguishedName;
}
}
augment "/subnet3gpp:SubNetwork" {
list AMFSet {
description "5G Core AMFSet IOC";
reference "3GPP TS 28.541";
key id;
uses top3gpp:Top_Grp;
container attributes {
uses AMFSetGrp;
}
uses mf3gpp:ManagedFunctionContainedClasses;
}
}
}
\ No newline at end of file
module _3gpp-5gc-nrm-ausffunction {
yang-version 1.1;
namespace urn:3gpp:sa5:_3gpp-5gc-nrm-ausffunction;
prefix ausf3gpp;
import _3gpp-common-managed-function { prefix mf3gpp; }
import _3gpp-common-managed-element { prefix me3gpp; }
import ietf-inet-types { prefix inet; }
import _3gpp-common-yang-types { prefix types3gpp; }
import _3gpp-common-top { prefix top3gpp; }
organization "3gpp SA5";
description "This IOC represents the AUSF function in 5GC. For more information about the AUSF, see 3GPP TS 23.501.";
reference "3GPP TS 28.541";
revision 2019-10-25 { reference "S5-194457 S5-193518"; }
revision 2019-05-22 {
description "initial revision";
}
grouping AUSFFuntionGrp {
uses mf3gpp:ManagedFunctionGrp;
list pLMNIdList {
description "List of at most six entries of PLMN Identifiers, but at least one (the primary PLMN Id).
The PLMN Identifier is composed of a Mobile Country Code (MCC) and a Mobile Network Code (MNC).";
min-elements 1;
max-elements 6;
key "mcc mnc";
uses types3gpp:PLMNId;
}
leaf sBIFQDN {
description "The FQDN of the registered NF instance in the service-based interface.";
type inet:domain-name;
}
leaf-list sNSSAIList {
description "List of S-NSSAIs the managed object is capable of supporting.
(Single Network Slice Selection Assistance Information)
An S-NSSAI has an SST (Slice/Service type) and an optional SD
(Slice Differentiator) field.";
//optional support
reference "3GPP TS 23.003";
type types3gpp:SNssai;
}
list managedNFProfile {
key idx;
min-elements 1;
uses types3gpp:ManagedNFProfile;
}
}
list commModelList {
min-elements 1;
key "groupId";
uses types5g3gpp:CommModel;
}
}
augment "/me3gpp:ManagedElement" {
list AUSFFunction {
description "5G Core AUSF Function";
reference "3GPP TS 28.541";
key id;
uses top3gpp:Top_Grp;
container attributes {
uses AUSFFuntionGrp;
}
uses mf3gpp:ManagedFunctionContainedClasses;
}
}
}
\ No newline at end of file
module _3gpp-5gc-nrm-dnfunction {
yang-version 1.1;
namespace urn:3gpp:sa5_3gpp-5gc-nrm-dnfunction;
prefix dn3gpp;
import _3gpp-common-managed-function { prefix mf3gpp; }
import _3gpp-common-managed-element { prefix me3gpp; }
import _3gpp-common-top { prefix top3gpp; }
organization "3gpp SA5";
description "This IOC is defined only to describe the IOCs representing
Data Network (DN) interaction interface with 5GC (i.e. EP_N6).
It has no attributes defined.";
reference "3GPP TS 28.541";
revision 2019-10-28 { reference S5-193518 ; }
revision 2019-05-15 {
description "initial revision";
}
grouping DNFunctionGrp {
uses mf3gpp:ManagedFunctionGrp;
}
augment "/me3gpp:ManagedElement" {
list DNFunction {
description "5G Core DN Function";
reference "3GPP TS 28.541";
key id;
uses top3gpp:Top_Grp;
container attributes {
uses DNFunctionGrp;
}
uses mf3gpp:ManagedFunctionContainedClasses;
}
}
}
\ No newline at end of file
This diff is collapsed.
module _3gpp-5gc-nrm-externalnrffunction {
yang-version 1.1;
namespace urn:3gpp:sa5:_3gpp-5gc-nrm-externalnrffunction;
prefix extnrf3gpp;
import _3gpp-common-yang-types { prefix types3gpp; }
import _3gpp-common-subnetwork { prefix subnet3gpp; }
import _3gpp-common-top { prefix top3gpp; }
import _3gpp-common-managed-function { prefix mf3gpp; }
description "This IOC represents external NRF function controlled by another management domain.";
revision 2019-10-28 { reference S5-193518 ; }
revision 2019-06-11 {
description "Ericsson refactoring.";
}
grouping ExternalNRFFunctionGrp {
uses mf3gpp:ManagedFunctionGrp;
list pLMNIdList {
description "List of at most six entries of PLMN Identifiers, but at least one (the primary PLMN Id).
The PLMN Identifier is composed of a Mobile Country Code (MCC) and a Mobile Network Code (MNC).";
min-elements 1;
max-elements 6;
key "mcc mnc";
uses types3gpp:PLMNId;
}
}
augment "/subnet3gpp:SubNetwork" {
list ExternalNRFFunction {
description "5G Core External NRF Function";
reference "3GPP TS 28.541";
key id;
uses top3gpp:Top_Grp;
container attributes {
uses ExternalNRFFunctionGrp;
}
uses mf3gpp:ManagedFunctionContainedClasses; }
}
}
\ No newline at end of file
module _3gpp-5gc-nrm-externalnssffunction {
yang-version 1.1;
namespace urn:3gpp:sa5:_3gpp-5gc-nrm-externalnssffunction;
prefix extnssf3gpp;
import _3gpp-common-yang-types { prefix types3gpp; }
import _3gpp-common-subnetwork { prefix subnet3gpp; }
import _3gpp-common-top { prefix top3gpp; }
import _3gpp-common-managed-function { prefix mf3gpp; }
description "This IOC represents external NSSF function controlled by another management domain.";
revision 2019-10-28 { reference S5-193518 ; }
revision 2019-06-11 {
description "Ericsson refactoring.";
}
grouping ExternalNSSFFunctionGrp {
uses mf3gpp:ManagedFunctionGrp;
list pLMNIdList {
description "List of at most six entries of PLMN Identifiers, but at least one (the primary PLMN Id).
The PLMN Identifier is composed of a Mobile Country Code (MCC) and a Mobile Network Code (MNC).";
min-elements 1;
max-elements 6;
key "mcc mnc";
uses types3gpp:PLMNId;
}
}
augment "/subnet3gpp:SubNetwork" {
list ExternalNSSFFunction {
description "5G Core External NSSF Function";
reference "3GPP TS 28.541";
key id;
uses top3gpp:Top_Grp;
container attributes {
uses ExternalNSSFFunctionGrp;
}
uses mf3gpp:ManagedFunctionContainedClasses;
}
}
}
\ No newline at end of file
module _3gpp-5gc-nrm-externalseppfunction {
yang-version 1.1;
namespace urn:3gpp:sa5:_3gpp-5gc-nrm-extternalseppfunction;
prefix extsepp3gpp;
import _3gpp-common-managed-function { prefix mf3gpp; }
import _3gpp-common-managed-element { prefix me3gpp; }
import _3gpp-common-yang-types { prefix types3gpp; }
import _3gpp-common-top { prefix top3gpp; }
import ietf-inet-types { prefix inet; }
organization "3gpp SA5";
description "This IOC represents the external SEPP function which support message filtering
and policing on inter-PLMN control plane interface. For more information about the SEPP, see 3GPP TS 23.501.";
reference "3GPP TS 28.541";
revision 2019-11-17 {
description "initial revision";
reference "Based on
3GPP TS 28.541 V16.X.XX";
}
grouping ExternalSEPPFunctionGrp {
uses mf3gpp:ManagedFunctionGrp;
container pLMNId {
description "PLMN Identifiers of the sepp.
The PLMN Identifier is composed of a Mobile Country Code (MCC) and a Mobile Network Code (MNC).";
uses types3gpp:PLMNId;
}
leaf sEPPId {
type uint16;
}
leaf fqdn {
description "The domain name of the SEPP.";
type inet:domain-name;
}
}
augment "/me3gpp:ManagedElement" {
list ExternalSEPPFunction {
description "5G Core SEPP Function";
reference "3GPP TS 28.541";
key id;
uses top3gpp:Top_Grp;
container attributes {
uses ExternalSEPPFunctionGrp;
}
}
}
}
\ No newline at end of file
module _3gpp-5gc-nrm-lmffunction {
yang-version 1.1;
namespace urn:3gpp:sa5:_3gpp-5gc-nrm-lmffunction;
prefix lmf3gpp;
import _3gpp-common-managed-function { prefix mf3gpp; }
import _3gpp-common-managed-element { prefix me3gpp; }
import _3gpp-common-yang-types { prefix types3gpp; }
import _3gpp-common-top { prefix top3gpp; }
organization "3gpp SA5";
description "This IOC represents the LMF function defined in 3GPP TS 23.501.";
reference "3GPP TS 28.541";
revision 2019-10-25 { reference "S5-194457 S5193518"; }
revision 2019-05-15 {
description "initial revision";
reference "Based on
3GPP TS 28.541 V15.X.XX";
}
grouping LMFFunctionGrp {
uses mf3gpp:ManagedFunctionGrp;
list pLMNIdList {
description "List of at most six entries of PLMN Identifiers, but at least one (the primary PLMN Id).
The PLMN Identifier is composed of a Mobile Country Code (MCC) and a Mobile Network Code (MNC).";
min-elements 1;
max-elements 6;
key "mcc mnc";
uses types3gpp:PLMNId;
}
list managedNFProfile {
key idx;
min-elements 1;
uses types3gpp:ManagedNFProfile;
}
list commModelList {
min-elements 1;
key "groupId";
uses types5g3gpp:CommModel;
}
}
augment "/me3gpp:ManagedElement" {
list LMFFunction {
description "5G Core LMF Function";
reference "3GPP TS 28.541";
key id;
uses top3gpp:Top_Grp;
container attributes {
uses LMFFunctionGrp;
}
uses mf3gpp:ManagedFunctionContainedClasses;
}
}
}
\ No newline at end of file
module _3gpp-5gc-nrm-n3iwffunction {
yang-version 1.1;
namespace urn:3gpp:sa5:_3gpp-5gc-nrm-n3iwffunction;
prefix n3iwf3gpp;
import _3gpp-common-managed-function { prefix mf3gpp; }
import _3gpp-common-managed-element { prefix me3gpp; }
import _3gpp-common-yang-types { prefix types3gpp; }
import _3gpp-common-top { prefix top3gpp; }
organization "3gpp SA5";
description "This IOC represents the N3IWF function which is used to enable non-3GPP
access networks connected to the 5GC. For more information about the N3IWF, see 3GPP TS 23.501.";
reference "3GPP TS 28.541";
revision 2019-10-28 { reference S5-193518 ; }
revision 2019-05-22 {
description "initial revision";
}
grouping N3IWFFunctionGrp {
uses mf3gpp:ManagedFunctionGrp;
list pLMNIdList {
description "List of at most six entries of PLMN Identifiers, but at least one (the primary PLMN Id).
The PLMN Identifier is composed of a Mobile Country Code (MCC) and a Mobile Network Code (MNC).";
min-elements 1;
max-elements 6;
key "mcc mnc";
uses types3gpp:PLMNId;
}
list commModelList {