Tabnine Logo
Ipv6Address.getValue
Code IndexAdd Tabnine to your IDE (free)

How to use
getValue
method
in
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6Address

Best Java code snippets using org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6Address.getValue (Showing top 20 results out of 315)

origin: org.opendaylight.mdsal.binding.model.ietf/rfc6991-ietf-inet-types

@Override
protected String ipv6AddressString(final Ipv6Address addr) {
  return addr.getValue();
}
origin: io.fd.hc2vpp.srv6/srv6-impl

/**
 * Constructs unique name for candidate path based on binding sid and weight
 *
 * @param bsid   binding sid associated with candidate path
 * @param weight weight of actual sidList
 * @return candidate path name
 */
public static String getCandidatePathName(final Ipv6Address bsid, final long weight) {
  return bsid.getValue() + "-" + weight;
}
origin: org.opendaylight.coretutorials/openconfig-bgp

public IpAddress(Ipv6Address _ipv6Address) {
  super();
  this._ipv6Address = _ipv6Address;
  this._ipv4Address = null;
  this._value = _ipv6Address.getValue().toString().toCharArray();
}

origin: org.opendaylight.openflowplugin.applications/statistics-manager

private static Ipv6Prefix createPrefix(final Ipv6Address ipv6Address, final String mask) {
  if (mask != null && !mask.isEmpty()) {
    return new Ipv6Prefix(ipv6Address.getValue() + PREFIX_SEPARATOR + mask);
  } else {
    return new Ipv6Prefix(ipv6Address.getValue() + PREFIX_SEPARATOR + IPV6_ADDRESS_LENGTH);
  }
}
origin: org.opendaylight.openflowplugin/openflowplugin

public static Iterator<String> splitToParts(final Ipv6Address ipv6Address) {
  /* Invalid (Ab)use of ip address as prefix!!! */
  return Iterators.forArray(ipv6Address.getValue(), String.valueOf(IPV6_ADDRESS_LENGTH));
}
origin: io.fd.hc2vpp.routing/routing-impl

private String doubleDotlessAddress(@Nonnull final Ipv6Address address) {
  // converted to use maximal compression
  // for details - https://google.github.io/guava/releases/snapshot/api/docs/com/google/common/net/InetAddresses.html#toAddrString-java.net.InetAddress
  return doubleDotless(compressedIpv6(address.getValue()));
}
origin: org.opendaylight.bgpcep/util

/**
 * Creates uncompressed IP Address
 *
 * @param ip to be uncompressed
 * @return Ipv6Address with same, but uncompressed, value
 */
public static Ipv6Address getFullForm(final Ipv6Address ip) {
  return new Ipv6Address(InetAddresses.forString(ip.getValue()).getHostAddress());
}
origin: io.fd.hc2vpp.srv6/srv6-impl

  @Override
  public void deleteCurrentAttributes(@Nonnull final InstanceIdentifier<Locator> instanceIdentifier,
                    @Nonnull final Locator locator, @Nonnull final WriteContext writeContext) {
    Preconditions.checkNotNull(locator.getPrefix(), "Prefix should not be empty in locator: {}", locator);
    Ipv6Address locAddress = Preconditions.checkNotNull(locator.getPrefix().getAddress(),
        "Address in prefix should not be empty for locator: {}", locator);

    locatorCtx.removeLocator(locAddress.getValue(), writeContext.getMappingContext());
  }
}
origin: io.fd.hc2vpp.srv6/srv6-impl

@Override
public void readSpecific(@Nonnull InstanceIdentifier<Policy> id, @Nonnull ReadContext ctx,
             @Nonnull PolicyBuilder builder) throws ReadFailedException {
  PolicyKey key = id.firstKeyOf(Policy.class);
  Ipv6Address bsid =
      policyCtx.getPolicyBsid(key.getColor(), key.getEndpoint().getIpv6Address(), ctx.getMappingContext());
  dumpManager.getDump(id, ctx.getModificationCache()).or(STATIC_EMPTY_REPLY).srPoliciesDetails.stream()
      .filter(srPoliciesDetails -> arrayToIpv6AddressNoZone(srPoliciesDetails.bsid.addr).getValue()
          .equals(bsid.getValue()))
      .findFirst()
      .ifPresent((SrPoliciesDetails details) -> bindPolicy(details, ctx, builder));
}
origin: org.opendaylight.bgpcep/bgp-bmp-impl

private static String getStringIpAddress(final IpAddress ipAddress) {
  if (ipAddress.getIpv4Address() != null) {
    return ipAddress.getIpv4Address().getValue();
  }
  return ipAddress.getIpv6Address().getValue();
}
origin: org.opendaylight.alto.basic/alto-simple-ecs-impl

private String touniqueIpAddress(IpAddress ipAddress) {
  Ipv4Address ipv4 = ipAddress.getIpv4Address();
  if (ipv4 != null) {
    return ipv4.getValue();
  }
  Ipv6Address ipv6 = ipAddress.getIpv6Address();
  if (ipv6 != null) {
    return uniqueIpv6String(ipv6.getValue());
  }
  return null;
}
private static String uniqueIpv6String(String ipv6) {
origin: org.opendaylight.groupbasedpolicy/ofoverlay-renderer

private static String getStringIpAddress(IpAddress ipAddress) {
  if (ipAddress.getIpv4Address() != null) {
    return ipAddress.getIpv4Address().getValue();
  }
  return ipAddress.getIpv6Address().getValue();
}
origin: org.opendaylight.groupbasedpolicy/neutron-mapper

public static String getStringIpAddress(IpAddress ipAddress) {
  if (ipAddress.getIpv4Address() != null) {
    return ipAddress.getIpv4Address().getValue();
  }
  return ipAddress.getIpv6Address().getValue();
}
origin: org.opendaylight.bgpcep/bgp-bmp-impl

private String getAddressString(final IpAddress address) {
  Preconditions.checkArgument(address.getIpv4Address() != null || address.getIpv6Address() != null, "Address %s is invalid", address);
  if (address.getIpv4Address() != null) {
    return address.getIpv4Address().getValue();
  }
  return address.getIpv6Address().getValue();
}
origin: org.opendaylight.bgpcep/pcep-topology-provider

private String getAddressString(final IpAddress address) {
  Preconditions.checkArgument(address.getIpv4Address() != null || address.getIpv6Address() != null, "Address %s is invalid", address);
  if (address.getIpv4Address() != null) {
    return address.getIpv4Address().getValue();
  }
  return address.getIpv6Address().getValue();
}
origin: org.opendaylight.alto.basic/alto-simple-ecs-impl

  public static String touniqueIpAddress(TypedAddressData ipAddress) {
    if (ipAddress.getAddress() instanceof Ipv4AddressData) {
      return ((Ipv4AddressData) ipAddress.getAddress()).getIpv4().getValue().replaceAll("^ipv4:", "");
    }
    if (ipAddress.getAddress() instanceof Ipv6AddressData) {
      return uniqueIpv6String(
          ((Ipv6AddressData) ipAddress.getAddress()).getIpv6().
              getValue().replaceAll("^ipv6:", ""));
    }
    return null;
  }
}
origin: org.opendaylight.bgpcep/bgp-rib-impl

private InetSocketAddress getAddress() {
  final InetAddress inetAddr;
  try {
    inetAddr = InetAddress.getByName(getBindingAddress()
        .getIpv4Address() != null ? getBindingAddress()
            .getIpv4Address().getValue() : getBindingAddress()
            .getIpv6Address().getValue());
  } catch (final UnknownHostException e) {
    throw new IllegalArgumentException("Illegal binding address " + getBindingAddress(), e);
  }
  return new InetSocketAddress(inetAddr, getBindingPort().getValue());
}
origin: org.opendaylight.openflowjava/openflow-protocol-impl

@Override
public void serialize(MatchEntry entry, ByteBuf outBuffer) {
  super.serialize(entry, outBuffer);
  Ipv6NdTargetCase entryValue = (Ipv6NdTargetCase) entry.getMatchEntryValue();
  writeIpv6Address(entryValue.getIpv6NdTarget().getIpv6Address().getValue(), outBuffer);
}
origin: org.opendaylight.openflowjava/openflow-protocol-impl

@Override
public void serialize(MatchEntry entry, ByteBuf outBuffer) {
  super.serialize(entry, outBuffer);
  Ipv6DstCase entryValue = (Ipv6DstCase) entry.getMatchEntryValue();
  writeIpv6Address(entryValue.getIpv6Dst().getIpv6Address().getValue(), outBuffer);
  if (entry.isHasMask()) {
    writeMask(entryValue.getIpv6Dst().getMask(), outBuffer,
        EncodeConstants.SIZE_OF_IPV6_ADDRESS_IN_BYTES);
  }
}
origin: org.opendaylight.groupbasedpolicy/ofoverlay-renderer

public static Action setIpv6DstAction(Ipv6Address ipAddress) {
  Ipv6Builder ipDest = new Ipv6Builder();
  Ipv6Prefix prefixdst = new Ipv6Prefix(new Ipv6Prefix(ipAddress.getValue() + "/128"));
  ipDest.setIpv6Address(prefixdst);
  SetNwDstActionBuilder setNwDstActionBuilder = new SetNwDstActionBuilder();
  setNwDstActionBuilder.setAddress(ipDest.build());
  return new SetNwDstActionCaseBuilder().setSetNwDstAction(setNwDstActionBuilder.build()).build();
}
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715Ipv6AddressgetValue

Popular methods of Ipv6Address

  • <init>
    Creates a copy from Source Object.
  • equals
  • check_valueLength
  • getDefaultInstance
  • hashCode

Popular in Java

  • Start an intent from android
  • addToBackStack (FragmentTransaction)
  • getResourceAsStream (ClassLoader)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • JTable (javax.swing)
  • Runner (org.openjdk.jmh.runner)
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now