Search in sources :

Example 1 with ConfTransportTypeL3vpn

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;
}
Also used : ConfTransportTypeL3vpnBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.l3vpn.rev130911.ConfTransportTypeL3vpnBuilder) ConfTransportTypeL3vpn(org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.l3vpn.rev130911.ConfTransportTypeL3vpn)

Aggregations

ConfTransportTypeL3vpn (org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.l3vpn.rev130911.ConfTransportTypeL3vpn)1 ConfTransportTypeL3vpnBuilder (org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.l3vpn.rev130911.ConfTransportTypeL3vpnBuilder)1