094957a91bd9082e67037388f1f5da60bf3609a2
[honeycomb.git] / v3po / v3po2vpp / src / main / java / io / fd / honeycomb / translate / v3po / interfaces / ip / Ipv6Customizer.java
1 /*
2  * Copyright (c) 2016 Cisco and/or its affiliates.
3  *
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:
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16
17 package io.fd.honeycomb.translate.v3po.interfaces.ip;
18
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.Ipv6;
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;
28
29 public class Ipv6Customizer extends FutureJVppCustomizer implements WriterCustomizer<Ipv6> {
30
31     private static final Logger LOG = LoggerFactory.getLogger(Ipv6Customizer.class);
32
33     public Ipv6Customizer(final FutureJVppCore vppApi) {
34         super(vppApi);
35     }
36
37     @Override
38     public void writeCurrentAttributes(@Nonnull final InstanceIdentifier<Ipv6> id,
39                                        @Nonnull final Ipv6 dataAfter, @Nonnull final WriteContext writeContext) {
40         LOG.warn("Unsupported, ignoring configuration {}", dataAfter);
41     }
42
43     @Override
44     public void updateCurrentAttributes(@Nonnull final InstanceIdentifier<Ipv6> id,
45                                         @Nonnull final Ipv6 dataBefore, @Nonnull final Ipv6 dataAfter,
46                                         @Nonnull final WriteContext writeContext) {
47         LOG.warn("Unsupported, ignoring configuration {}", dataAfter);
48     }
49
50     @Override
51     public void deleteCurrentAttributes(@Nonnull final InstanceIdentifier<Ipv6> id,
52                                         @Nonnull final Ipv6 dataBefore, @Nonnull final WriteContext writeContext) {
53         LOG.warn("Unsupported, ignoring configuration delete {}", id);
54     }
55 }