X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?p=sim%2Fo1-interface.git;a=blobdiff_plain;f=ntsimulator%2Fyang%2Fnts-manager%2Fnetwork-topology-simulator.yang;h=766a3efb4541c327fe684b316ec85b7d15a9107d;hp=1bc43cb40bfe408f00b26cce71b67be71a1fef61;hb=7dbf479029ba8bc528fb61a40ab2647489da28e9;hpb=610985b805c2b5c730bbc247ccbf76dd624792d0 diff --git a/ntsimulator/yang/nts-manager/network-topology-simulator.yang b/ntsimulator/yang/nts-manager/network-topology-simulator.yang index 1bc43cb..766a3ef 100644 --- a/ntsimulator/yang/nts-manager/network-topology-simulator.yang +++ b/ntsimulator/yang/nts-manager/network-topology-simulator.yang @@ -16,6 +16,12 @@ module network-topology-simulator { description "This module contains a collection of YANG definitions for managing the Network Topology Simulator."; + revision 2020-04-22 { + description + "Add configuration for number of SSH and TLS connections exposed by each simulated device."; + reference + "O-RAN SC SIM project"; + } revision 2020-04-13 { description "Change fault-notification-delay-period to leaf-list."; @@ -188,6 +194,10 @@ module network-topology-simulator { } container simulator-config { + must "./ssh-connections + ./tls-connections <= 100" { + error-message "The total number of connections (SSH + TLS) needs to be less than or equal with 100."; + } + // presence "Enables NTS configuration."; description "Configuration container of the simulator."; leaf simulated-devices { @@ -198,10 +208,27 @@ module network-topology-simulator { } leaf mounted-devices { type uint32; + must ". <= ../simulated-devices" { + error-message "The number of mounted devices cannot be greater that the number of simulated devices"; + } default "0"; description "The number of devices to be mounted in ODL. The configured number should not exceed the number of mounted devices."; } + leaf ssh-connections { + when "../simulated-devices = 0"; + type uint32; + default "1"; + description + "The number of SSH connections to be exposed by each simulated device."; + } + leaf tls-connections { + when "../simulated-devices = 0"; + type uint32; + default "0"; + description + "The number of TLS connections to be exposed by each simulated device."; + } container notification-config { leaf-list fault-notification-delay-period { type uint32;