blob: cde52731d644b5bc674317f5e401a879e87cb96a [file] [log] [blame]
// SPDX-FileCopyrightText: 2021 Open Networking Foundation
//
// SPDX-License-Identifier: Apache-2.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;
}
description "The typedef for qos-profile-id";
}
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;
}
units bps;
default 0;
description
"Upstream aggregate maximum bit rate";
}
leaf downlink {
type uint32 {
range 0..4294967295;
}
units bps;
default 0;
description
"Downstream aggregate maximum bit rate";
}
description "The container for apn-ambr";
}
leaf description {
type string {
length 1..100;
}
description "description of this profile";
}
}
}
}