/*
- * Copyright (c) 2016 Intel Corporation and others. All rights reserved.
+ * Copyright (c) 2016, 2018 Intel Corporation and others. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
toMdIds(bandwidthLimitRule, BandwidthLimitRulesBuilder.class);
bandwidthLimitRulesBuilder.setMaxKbps(bandwidthLimitRule.getMaxKbps());
bandwidthLimitRulesBuilder.setMaxBurstKbps(bandwidthLimitRule.getMaxBurstKbps());
+ bandwidthLimitRulesBuilder.setDirection(DirectionMapper.get(bandwidthLimitRule.getDirection()));
listBandwith.add(bandwidthLimitRulesBuilder.build());
}
qosPolicyBuilder.setBandwidthLimitRules(listBandwith);
NeutronQosBandwidthLimitRule opt = new NeutronQosBandwidthLimitRule();
opt.setMaxKbps(rule.getMaxKbps());
opt.setMaxBurstKbps(rule.getMaxBurstKbps());
+ opt.setDirection(DirectionMapper.getDirectionString(rule.getDirection()));
bandwidthLimitRules.add(opt);
}
result.setQosBandwidthLimitRules(bandwidthLimitRules);