This bumps mdsal to 5.0.2 as part of Magnesium MRI.
Change-Id: I93e10e95b7a241d678829afb732e2adef82c1a24
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
<dependency>
<groupId>org.opendaylight.mdsal</groupId>
<artifactId>mdsal-artifacts</artifactId>
- <version>4.0.6</version>
+ <version>5.0.2</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<groupId>org.opendaylight.neutron</groupId>
<artifactId>integration-test-standalone</artifactId>
<version>0.14.0-SNAPSHOT</version>
+ <packaging>bundle</packaging>
<!-- <name> formatting is used by autorelease to parse and notify projects on
build failure. Please do not modify this unless you have a good reason. -->
import org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.constants.rev150712.FwProtocolBase;
import org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.constants.rev150712.NeutronUtils;
import org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.fwaas.rev150712.FirewallRuleAttributes.Protocol;
+import org.opendaylight.yangtools.yang.common.Uint8;
/**
* The purpose of generated class in src/main/java for Union types is to create new instances of unions from a string representation.
*
*/
public class FirewallRuleAttributesProtocolBuilder {
- public static Protocol getDefaultInstance(final java.lang.String defaultValue) {
- Class<? extends FwProtocolBase> fwProtocol =
- NeutronUtils.FwProtocolMapper.get(defaultValue);
+ public static Protocol getDefaultInstance(final String defaultValue) {
+ Class<? extends FwProtocolBase> fwProtocol = NeutronUtils.FwProtocolMapper.get(defaultValue);
if (fwProtocol != null) {
return new Protocol(fwProtocol);
}
- Short protocol = Short.parseShort(defaultValue);
- return new Protocol(protocol);
+ return new Protocol(Uint8.valueOf(defaultValue));
}
}
import org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.constants.rev150712.NeutronUtils;
import org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.constants.rev150712.ProtocolBase;
import org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.secgroups.rev150712.SecurityRuleAttributes.Protocol;
+import org.opendaylight.yangtools.yang.common.Uint8;
/**
*/
public class SecurityRuleAttributesProtocolBuilder {
- public static Protocol getDefaultInstance(java.lang.String defaultValue) {
- Class<? extends ProtocolBase> protocol =
- NeutronUtils.ProtocolMapper.get(defaultValue);
+ public static Protocol getDefaultInstance(final String defaultValue) {
+ Class<? extends ProtocolBase> protocol = NeutronUtils.ProtocolMapper.get(defaultValue);
if (protocol != null) {
return new Protocol(protocol);
}
- Short protocolShort = Short.parseShort(defaultValue);
- return new Protocol(protocolShort);
+ return new Protocol(Uint8.valueOf(defaultValue));
}
}
<parent>
<groupId>org.opendaylight.mdsal</groupId>
<artifactId>binding-parent</artifactId>
- <version>4.0.6</version>
+ <version>5.0.2</version>
<relativePath/>
</parent>
fromMdAdminAttributes(bgpvpn, result);
result.setAutoAggregate(bgpvpn.isAutoAggregate());
if (bgpvpn.getVni() != null) {
- result.setVni(bgpvpn.getVni());
+ result.setVni(bgpvpn.getVni().toJava());
}
if (bgpvpn.getType() != null) {
result.setType(BGPVPN_TYPE_MAP.get(bgpvpn.getType()));
answer.setFirewallRuleDstIpAddr(rule.getDestinationIpAddr().stringValue());
}
if (rule.getSourcePortRangeMin() != null) {
- answer.setFirewallRuleSrcPortRangeMin(rule.getSourcePortRangeMin());
+ answer.setFirewallRuleSrcPortRangeMin(rule.getSourcePortRangeMin().toJava());
}
if (rule.getSourcePortRangeMax() != null) {
- answer.setFirewallRuleSrcPortRangeMax(rule.getSourcePortRangeMax());
+ answer.setFirewallRuleSrcPortRangeMax(rule.getSourcePortRangeMax().toJava());
}
if (rule.getDestinationPortRangeMin() != null) {
- answer.setFirewallRuleDstPortRangeMin(rule.getDestinationPortRangeMin());
+ answer.setFirewallRuleDstPortRangeMin(rule.getDestinationPortRangeMin().toJava());
}
if (rule.getDestinationPortRangeMax() != null) {
- answer.setFirewallRuleDstPortRangeMax(rule.getDestinationPortRangeMax());
+ answer.setFirewallRuleDstPortRangeMax(rule.getDestinationPortRangeMax().toJava());
}
if (rule.getPosition() != null) {
answer.setFirewallRulePosition(Integer.valueOf(rule.getPosition().intValue()));
answer.setLoadBalancerHealthMonitorHttpMethod(healthMonitor.getHttpMethod());
}
if (healthMonitor.getMaxRetries() != null) {
- answer.setLoadBalancerHealthMonitorMaxRetries(healthMonitor.getMaxRetries());
+ answer.setLoadBalancerHealthMonitorMaxRetries(healthMonitor.getMaxRetries().toJava());
}
if (healthMonitor.getPools() != null) {
final List<NeutronID> list = new ArrayList<>();
answer.setPoolMemberAddress(member.getAddress().stringValue());
}
if (member.getProtocolPort() != null) {
- answer.setPoolMemberProtoPort(member.getProtocolPort());
+ answer.setPoolMemberProtoPort(member.getProtocolPort().toJava());
}
if (member.getSubnetId() != null) {
answer.setPoolMemberSubnetID(member.getSubnetId().getValue());
}
if (member.getWeight() != null) {
- answer.setPoolMemberWeight(member.getWeight());
+ answer.setPoolMemberWeight(member.getWeight().toJava());
}
return answer;
}
}
final NetworkMtuExtension mtu = network.augmentation(NetworkMtuExtension.class);
if (mtu != null && mtu.getMtu() != null) {
- result.setMtu(mtu.getMtu());
+ result.setMtu(mtu.getMtu().toJava());
}
result.setSegments(segments);
return result;
final List<NeutronQosBandwidthLimitRule> bandwidthLimitRules = new ArrayList<>();
for (final BandwidthLimitRules rule : qosPolicy.getBandwidthLimitRules()) {
NeutronQosBandwidthLimitRule opt = new NeutronQosBandwidthLimitRule();
- opt.setMaxKbps(rule.getMaxKbps());
- opt.setMaxBurstKbps(rule.getMaxBurstKbps());
+ opt.setMaxKbps(rule.getMaxKbps().toJava());
+ opt.setMaxBurstKbps(rule.getMaxBurstKbps().toJava());
opt.setDirection(DirectionMapper.getDirectionString(rule.getDirection()));
bandwidthLimitRules.add(opt);
}
final List<NeutronQosDscpMarkingRule> dscpMarkingRules = new ArrayList<>();
for (final DscpmarkingRules rule : qosPolicy.getDscpmarkingRules()) {
NeutronQosDscpMarkingRule opt = new NeutronQosDscpMarkingRule();
- opt.setDscpMark(rule.getDscpMark());
+ opt.setDscpMark(rule.getDscpMark().toJava());
dscpMarkingRules.add(opt);
}
result.setDscpMarkingRules(dscpMarkingRules);
NeutronQosMinimumBandwidthRule opt = new NeutronQosMinimumBandwidthRule();
opt.setID(rule.getTenantId().getValue());
opt.setTenantID(rule.getTenantId().getValue());
- opt.setMinKbps(rule.getMinKbps());
+ opt.setMinKbps(rule.getMinKbps().toJava());
opt.setDirection(DirectionMapper.getDirectionString(rule.getDirection()));
minimumBandwidthRules.add(opt);
}
result.setProtocol(PROTOCOL_MAP.get(mdClassifier.getProtocol()));
}
if (mdClassifier.getSourcePortRangeMin() != null) {
- result.setSourcePortRangeMin(mdClassifier.getSourcePortRangeMin());
+ result.setSourcePortRangeMin(mdClassifier.getSourcePortRangeMin().toJava());
}
if (mdClassifier.getSourcePortRangeMax() != null) {
- result.setSourcePortRangeMax(mdClassifier.getSourcePortRangeMax());
+ result.setSourcePortRangeMax(mdClassifier.getSourcePortRangeMax().toJava());
}
if (mdClassifier.getDestinationPortRangeMin() != null) {
- result.setDestinationPortRangeMin(mdClassifier.getDestinationPortRangeMin());
+ result.setDestinationPortRangeMin(mdClassifier.getDestinationPortRangeMin().toJava());
}
if (mdClassifier.getDestinationPortRangeMax() != null) {
- result.setDestinationPortRangeMax(mdClassifier.getDestinationPortRangeMax());
+ result.setDestinationPortRangeMax(mdClassifier.getDestinationPortRangeMax().toJava());
}
if (mdClassifier.getSourceIpPrefix() != null) {
result.setSourceIpPrefix(mdClassifier.getSourceIpPrefix().stringValue());
answer.setSecurityRuleEthertype(ETHERTYPE_MAP.get(rule.getEthertype()));
}
if (rule.getPortRangeMin() != null) {
- answer.setSecurityRulePortMin(rule.getPortRangeMin());
+ answer.setSecurityRulePortMin(rule.getPortRangeMin().toJava());
}
if (rule.getPortRangeMax() != null) {
- answer.setSecurityRulePortMax(rule.getPortRangeMax());
+ answer.setSecurityRulePortMax(rule.getPortRangeMax().toJava());
}
return answer;
}