Class VpnOperDsUtils
- java.lang.Object
-
- org.opendaylight.netvirt.vpnmanager.VpnOperDsUtils
-
public final class VpnOperDsUtils extends java.lang.Object
There is one VpnInstance in ConfigDS and a VpnInstance in OperationalDS. The only reason for this class to exist is to avoid very long fully qualified class names when these 2 classes coincide on the same java file. A couple of examples:org.opendaylight.yang.gen.v1.urn.huawei.params.xml.ns.yang.l3vpn.rev140815.vpn.instances.VpnInstance, versus org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.l3vpn.rev130911.vpn.instance.to.vpn.id.VpnInstance
org.opendaylight.yang.gen.v1.urn.huawei.params.xml.ns.yang.l3vpn.rev140815.vpn.af.config.vpntargets.VpnTarget, versus org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.l3vpn.rev130911.vpn.instance.op.data.vpn .instance.op.data.entry.vpntargets.VpnTarget
These class deals with those classes usually considered for the Operational DS.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<VpnInstance>
getVpnInstanceToVpnIdIdentifier(java.lang.String vpnName)
static VpnInstance
makeVpnInstance(java.lang.String vpnName, java.lang.String vpnRd, java.lang.Long vpnTag)
static VpnTargets
makeVpnTargets(java.util.List<java.lang.String> irts, java.util.List<java.lang.String> erts)
-
-
-
Method Detail
-
getVpnInstanceToVpnIdIdentifier
public static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<VpnInstance> getVpnInstanceToVpnIdIdentifier(java.lang.String vpnName)
-
makeVpnInstance
public static VpnInstance makeVpnInstance(java.lang.String vpnName, java.lang.String vpnRd, java.lang.Long vpnTag)
-
makeVpnTargets
public static VpnTargets makeVpnTargets(java.util.List<java.lang.String> irts, java.util.List<java.lang.String> erts)
-
-