Class IsInIPv4Subnet

All Implemented Interfaces:
Serializable

public class IsInIPv4Subnet extends AbstractIsInIPSubnet<IPv4AddressNetmask>
An execution policy rule that encapsulates a test of type IPv4 is in Subnet string.

This policy has the following XML representation:

<IsInIPv4Subnet>
   <Subnet>subnet-1</Subnet>
   ...
   <Subnet>subnet-N</Subnet>
 </IsInIPv4Subnet>
where each subnet-i is a subnet expressed either in CIDR notation or in the representation described in IPv4AddressPattern.
Since:
4.2
Author:
Daniel Widdis
See Also:
  • Constructor Details

    • IsInIPv4Subnet

      public IsInIPv4Subnet(String... subnets)
      Define a membership test using ipv4.addresses property to determine if a node or driver is in one of the specified subnets.
      Parameters:
      subnets - One or more strings representing either a valid IPv4 subnet in CIDR notation or IP address range pattern as defined in IPv4AddressPattern
    • IsInIPv4Subnet

      public IsInIPv4Subnet(Collection<String> subnets)
      Define a membership test using ipv6.addresses property to determine if a node is in one of the specified subnets.
      Parameters:
      subnets - One or more strings representing either a valid IPv4 subnet in CIDR notation or IP address range pattern as defined in IPv4AddressPattern