Class 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 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)