2 * Copyright (c) 2019 PANTHEON.tech.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at:
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 package io.fd.hc2vpp.l3.write.ipv6.subinterface;
19 import static com.google.common.base.Preconditions.checkNotNull;
21 import io.fd.hc2vpp.common.translate.util.NamingContext;
22 import io.fd.honeycomb.translate.write.DataValidationFailedException;
23 import io.fd.honeycomb.translate.write.Validator;
24 import io.fd.honeycomb.translate.write.WriteContext;
25 import javax.annotation.Nonnull;
26 import org.opendaylight.yang.gen.v1.http.fd.io.hc2vpp.yang.vpp.vlan.rev180319.sub._interface.ip6.attributes.ipv6.Neighbor;
27 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
29 public class SubInterfaceIpv6NeighbourValidator implements Validator<Neighbor> {
31 public SubInterfaceIpv6NeighbourValidator(final NamingContext ifcNamingContext) {
32 checkNotNull(ifcNamingContext, "interface context should not be null");
36 public void validateWrite(@Nonnull final InstanceIdentifier<Neighbor> id, @Nonnull final Neighbor dataAfter,
37 @Nonnull final WriteContext writeContext)
38 throws DataValidationFailedException.CreateValidationFailedException {
39 // there is nothing to validate yet
43 public void validateDelete(@Nonnull final InstanceIdentifier<Neighbor> id, @Nonnull final Neighbor dataBefore,
44 @Nonnull final WriteContext writeContext)
45 throws DataValidationFailedException.DeleteValidationFailedException {
46 // there is nothing to validate yet