e2a52cd68b092772a8c4f59e7fc244861ca1fe4b
[honeycomb.git] / v3po / v3po2vpp / src / main / java / io / fd / honeycomb / translate / v3po / interfaces / acl / egress / IetfAclCustomizer.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.acl.egress;
18
19 import static com.google.common.base.Preconditions.checkNotNull;
20
21 import io.fd.honeycomb.translate.spi.write.WriterCustomizer;
22 import io.fd.honeycomb.translate.v3po.interfaces.acl.ingress.IetfAClWriter;
23 import io.fd.honeycomb.translate.vpp.util.NamingContext;
24 import io.fd.honeycomb.translate.write.WriteContext;
25 import io.fd.honeycomb.translate.write.WriteFailedException;
26 import javax.annotation.Nonnull;
27 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.v3po.rev150105.interfaces._interface.ietf.acl.Egress;
28 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
29 import org.slf4j.Logger;
30 import org.slf4j.LoggerFactory;
31
32 public class IetfAclCustomizer implements WriterCustomizer<Egress> {
33     private static final Logger LOG = LoggerFactory.getLogger(IetfAclCustomizer.class);
34     private final IetfAClWriter aclWriter;
35     private final NamingContext interfaceContext;
36
37
38     public IetfAclCustomizer(final IetfAClWriter aclWriter, final NamingContext interfaceContext) {
39         this.aclWriter = checkNotNull(aclWriter, "aclWriter should not be null");
40         this.interfaceContext = checkNotNull(interfaceContext, "interfaceContext should not be null");
41     }
42
43     @Override
44     public void writeCurrentAttributes(@Nonnull final InstanceIdentifier<Egress> id, @Nonnull final Egress dataAfter,
45                                        @Nonnull final WriteContext writeContext) throws WriteFailedException {
46         LOG.debug("Writing attributes for id={} dataAfter={}: NOT IMPLEMENTED YET", id, dataAfter);
47     }
48
49     @Override
50     public void updateCurrentAttributes(@Nonnull final InstanceIdentifier<Egress> id, @Nonnull final Egress dataBefore,
51                                         @Nonnull final Egress dataAfter, @Nonnull final WriteContext writeContext)
52         throws WriteFailedException {
53         LOG.debug("Updating attributes for id={} dataBefore={} dataAfter={}: NOT IMPLEMENTED YET", id, dataBefore, dataAfter);
54
55     }
56
57     @Override
58     public void deleteCurrentAttributes(@Nonnull final InstanceIdentifier<Egress> id, @Nonnull final Egress dataBefore,
59                                         @Nonnull final WriteContext writeContext) throws WriteFailedException {
60         LOG.debug("Deleting attributes for id={} dataBefore={}: NOT IMPLEMENTED YET", id, dataBefore);
61     }
62 }