1e3a3e747708f34e130f4c72ce5e7c85efc35e53
[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.v3po.util.FutureJVppCustomizer;
20 import io.fd.honeycomb.translate.write.WriteContext;
21 import io.fd.honeycomb.translate.spi.write.WriterCustomizer;
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 org.openvpp.jvpp.future.FutureJVpp;
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 FutureJVpp 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         // TODO
41         LOG.warn("Unsupported, ignoring configuration {}", dataAfter);
42     }
43
44     @Override
45     public void updateCurrentAttributes(@Nonnull final InstanceIdentifier<Ipv6> id,
46                                         @Nonnull final Ipv6 dataBefore, @Nonnull final Ipv6 dataAfter,
47                                         @Nonnull final WriteContext writeContext) {
48         LOG.warn("Unsupported, ignoring configuration {}", dataAfter);
49     }
50
51     @Override
52     public void deleteCurrentAttributes(@Nonnull final InstanceIdentifier<Ipv6> id,
53                                         @Nonnull final Ipv6 dataBefore, @Nonnull final WriteContext writeContext) {
54         LOG.warn("Unsupported, ignoring configuration delete {}", id);
55         // TODO
56     }
57 }