blob: 257f4ff55e8bf9f65fdb8eb6a7ece140f05366b6 [file] [log] [blame]
// SPDX-FileCopyrightText: 2021 Open Networking Foundation
//
// SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
module qos-profile {
namespace "http://opennetworking.org/aether/qos-profile";
prefix pro;
organization "Open Networking Foundation.";
contact "Scott Baker";
description "To generate JSON from this use command
pyang -f jtoxx test1.yang | python3 -m json.tool > test1.json
Copied from YangUIComponents project";
revision "2020-08-18" {
description "An Aether qos Profile";
reference "RFC 6087";
}
// TODO: Think more on whether this should be a UUID or
// simply a unique name. If it's a UUID, could fix the
// string length.
typedef qos-profile-id {
type string {
length 1..32;
}
}
container qos-profile {
description "The top level container";
list qos-profile {
key "id";
description
"List of qos profiles";
leaf id {
type qos-profile-id;
description "ID for this qos profile.";
}
container apn-ambr {
leaf uplink {
type uint32 {
range 0..4294967295;
}
default 0;
units bps;
description
"Upstream aggregate maximum bit rate";
}
leaf downlink {
type uint32 {
range 0..4294967295;
}
default 0;
units bps;
description
"Downstream aggregate maximum bit rate";
}
}
leaf description {
type string {
length 1..100;
}
description "description of this profile";
}
}
}
}