use of org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.l3vpn.rev130911.ConfTransportTypeL3vpn in project netvirt by opendaylight.
the class NexthopManager method createConfTransportType.
private ConfTransportTypeL3vpn createConfTransportType(String type) {
ConfTransportTypeL3vpn confTransType;
switch(type) {
case ITMConstants.TUNNEL_TYPE_GRE:
confTransType = new ConfTransportTypeL3vpnBuilder().setTransportType(TunnelTypeGre.class).build();
LOG.trace("Setting the confTransportType to GRE.");
break;
case ITMConstants.TUNNEL_TYPE_VXLAN:
confTransType = new ConfTransportTypeL3vpnBuilder().setTransportType(TunnelTypeVxlan.class).build();
LOG.trace("Setting the confTransportType to VxLAN.");
break;
default:
LOG.trace("Invalid transport type {} passed to Config DS ", type);
confTransType = null;
break;
}
return confTransType;
}
Aggregations