Configuring buffer allocation profiles for subinterfaces
To configure a buffer allocation profile for a subinterface, use the qos buffer-management buffer-allocation-profile command.
If you prefer to apply a buffer allocation using the default SR Linux algorithm, attach an empty buffer allocation profile to the subinterface with no explicit parameters.
Configure a buffer allocation profile for a subinterface
--{ candidate shared default }--[ ]--
# info with-context qos buffer-management buffer-allocation-profile subinterface-buffer-profile
qos {
buffer-management {
buffer-allocation-profile subinterface-buffer-profile {
queues {
queue af1 {
maximum-burst-size 256000
}
queue af2 {
maximum-burst-size 256000
}
queue best-effort {
maximum-burst-size 512000
}
queue expedited {
maximum-burst-size 128000
}
queue nc {
maximum-burst-size 28000
}
}
}
}
}
Configure subinterface queues and forwarding classes
The following example shows additional configuration for subinterface queues and forwarding classes associated with the preceding buffer allocation profile.
--{ candidate shared default }--[ ]--
# info with-context qos queues
qos {
queues {
queue af1 {
queue-index 1
}
queue af2 {
queue-index 2
}
queue best-effort {
queue-index 0
}
queue expedited {
queue-index 6
}
queue nc {
queue-index 7
}
}
}
--{ candidate shared default }--[ qos forwarding-classes ]--
# info with-context qos forwarding-classes
qos {
forwarding-classes {
forwarding-class af1 {
output {
unicast-queue af1
}
}
forwarding-class af2 {
output {
unicast-queue af2
}
}
forwarding-class be {
output {
unicast-queue best-effort
}
}
forwarding-class ef {
output {
unicast-queue expedited
}
}
forwarding-class nc {
output {
unicast-queue nc
}
}
}
}