@Test public void testMatch() { Match result = PolicyManagerUtil.createSecurityGroupMatch(10, 20); assertNotNull(result); }
static Match createSecurityGroupMatch(final int sourceTag, final int destinationTag) { final SecurityGroupBuilder sgBuilder = new SecurityGroupBuilder(); final Source source = new SourceBuilder().setTag(sourceTag).build(); final Destination destination = new DestinationBuilder().setTag(destinationTag).build(); sgBuilder.setDestination(destination) .setSource(source); final SecurityGroup securityGroup = sgBuilder.build(); final MatchBuilder matchBuilder = new MatchBuilder(); matchBuilder.setSecurityGroup(securityGroup); return matchBuilder.build(); }
PolicyManagerUtil { static Match createSecurityGroupMatch(final int sourceTag, final int destinationTag) { final SecurityGroupBuilder sgBuilder = new SecurityGroupBuilder(); final Source source = new SourceBuilder().setTag(sourceTag).build(); final Destination destination = new DestinationBuilder().setTag(destinationTag).build(); sgBuilder.setDestination(destination) .setSource(source); final SecurityGroup securityGroup = sgBuilder.build(); final MatchBuilder matchBuilder = new MatchBuilder(); matchBuilder.setSecurityGroup(securityGroup); return matchBuilder.build(); } }
PolicyManagerUtil { static Match createSecurityGroupMatch(final int sourceTag, final int destinationTag) { final SecurityGroupBuilder sgBuilder = new SecurityGroupBuilder(); final Source source = new SourceBuilder().setTag(sourceTag).build(); final Destination destination = new DestinationBuilder().setTag(destinationTag).build(); sgBuilder.setDestination(destination) .setSource(source); final SecurityGroup securityGroup = sgBuilder.build(); final MatchBuilder matchBuilder = new MatchBuilder(); matchBuilder.setSecurityGroup(securityGroup); return matchBuilder.build(); } private  PolicyManagerUtil(); }
PolicyManagerUtil { static Match createSecurityGroupMatch(final int sourceTag, final int destinationTag) { final SecurityGroupBuilder sgBuilder = new SecurityGroupBuilder(); final Source source = new SourceBuilder().setTag(sourceTag).build(); final Destination destination = new DestinationBuilder().setTag(destinationTag).build(); sgBuilder.setDestination(destination) .setSource(source); final SecurityGroup securityGroup = sgBuilder.build(); final MatchBuilder matchBuilder = new MatchBuilder(); matchBuilder.setSecurityGroup(securityGroup); return matchBuilder.build(); } private  PolicyManagerUtil(); static void syncEndpointPairCreatePolicy(final Sgt sourceSgt, final Sgt destinationSgt,
                                                    final PolicyConfigurationContext context, final Configuration data,
                                                    final PeerEndpoint peerEndpoint, final DataBroker dataBroker); static void syncEndpointPairRemovePolicy(final Sgt sourceSgt, final Sgt destinationSgt,
                                                    final PolicyConfigurationContext context, final Configuration data,
                                                    final PeerEndpoint peerEndpoint); @Nullable static Sgt findSgtTag(final EPToSgtMapper sxpEpProvider, final AddressEndpointKey endpointKey,
                                 final List<AddressEndpointWithLocation> endpointsWithLocation, final long timeout, final TimeUnit unit); static ServicePolicy createServicePolicy(final String chainName, final Direction direction); static InstanceIdentifier getMountpointIidFromAbsoluteLocation(final RendererEndpoint endpoint,
                                                                          final List<AddressEndpointWithLocation> endpointsWithLocation); static String getInterfaceNameFromAbsoluteLocation(final RendererEndpoint endpoint,
                                                              final List<AddressEndpointWithLocation> endpointsWithLocation); static Optional<Binding> createIpSgtBindingItem(final Sgt sgt, final AddressEndpointWithLocation addressEndpointWithLocation); }
PolicyManagerUtil { static Match createSecurityGroupMatch(final int sourceTag, final int destinationTag) { final SecurityGroupBuilder sgBuilder = new SecurityGroupBuilder(); final Source source = new SourceBuilder().setTag(sourceTag).build(); final Destination destination = new DestinationBuilder().setTag(destinationTag).build(); sgBuilder.setDestination(destination) .setSource(source); final SecurityGroup securityGroup = sgBuilder.build(); final MatchBuilder matchBuilder = new MatchBuilder(); matchBuilder.setSecurityGroup(securityGroup); return matchBuilder.build(); } private  PolicyManagerUtil(); static void syncEndpointPairCreatePolicy(final Sgt sourceSgt, final Sgt destinationSgt,
                                                    final PolicyConfigurationContext context, final Configuration data,
                                                    final PeerEndpoint peerEndpoint, final DataBroker dataBroker); static void syncEndpointPairRemovePolicy(final Sgt sourceSgt, final Sgt destinationSgt,
                                                    final PolicyConfigurationContext context, final Configuration data,
                                                    final PeerEndpoint peerEndpoint); @Nullable static Sgt findSgtTag(final EPToSgtMapper sxpEpProvider, final AddressEndpointKey endpointKey,
                                 final List<AddressEndpointWithLocation> endpointsWithLocation, final long timeout, final TimeUnit unit); static ServicePolicy createServicePolicy(final String chainName, final Direction direction); static InstanceIdentifier getMountpointIidFromAbsoluteLocation(final RendererEndpoint endpoint,
                                                                          final List<AddressEndpointWithLocation> endpointsWithLocation); static String getInterfaceNameFromAbsoluteLocation(final RendererEndpoint endpoint,
                                                              final List<AddressEndpointWithLocation> endpointsWithLocation); static Optional<Binding> createIpSgtBindingItem(final Sgt sgt, final AddressEndpointWithLocation addressEndpointWithLocation);  }