2 * Copyright (c) 2016 Cisco and/or its affiliates.
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.honeycomb.translate.v3po.interfaces.ip;
19 import io.fd.honeycomb.translate.spi.write.WriterCustomizer;
20 import io.fd.honeycomb.translate.vpp.util.FutureJVppCustomizer;
21 import io.fd.honeycomb.translate.write.WriteContext;
22 import javax.annotation.Nonnull;
23 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.ip.rev140616.interfaces._interface.Ipv4;
24 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
25 import io.fd.vpp.jvpp.core.future.FutureJVppCore;
26 import org.slf4j.Logger;
27 import org.slf4j.LoggerFactory;
29 public class Ipv4Customizer extends FutureJVppCustomizer implements WriterCustomizer<Ipv4> {
31 private static final Logger LOG = LoggerFactory.getLogger(Ipv4Customizer.class);
33 public Ipv4Customizer(final FutureJVppCore vppApi) {
38 public void writeCurrentAttributes(@Nonnull final InstanceIdentifier<Ipv4> id,
39 @Nonnull final Ipv4 dataAfter, @Nonnull final WriteContext writeContext) {
40 LOG.debug("Handling Ipv4 leaves (mtu, forwarding) is not supported by VPP API. Ignoring configuration");
44 public void updateCurrentAttributes(@Nonnull final InstanceIdentifier<Ipv4> id,
45 @Nonnull final Ipv4 dataBefore, @Nonnull final Ipv4 dataAfter,
46 @Nonnull final WriteContext writeContext) {
47 LOG.debug("Handling Ipv4 leaves (mtu, forwarding) is not supported by VPP API. Ignoring configuration");
51 public void deleteCurrentAttributes(@Nonnull final InstanceIdentifier<Ipv4> id,
52 @Nonnull final Ipv4 dataBefore, @Nonnull final WriteContext writeContext) {
53 LOG.debug("Handling Ipv4 leaves (mtu, forwarding) is not supported by VPP API. Ignoring configuration");