24c8ace9bd2718748031e8ebb1591922e736d350
[netconf.git] / transport / transport-tcp / src / main / java / org / opendaylight / netconf / transport / tcp / IetfTcpCommonFeatureProvider.java
1 /*
2  * Copyright (c) 2022 PANTHEON.tech, s.r.o. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.netconf.transport.tcp;
9
10 import java.util.Set;
11 import org.eclipse.jdt.annotation.NonNullByDefault;
12 import org.kohsuke.MetaInfServices;
13 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.tcp.common.rev231228.IetfTcpCommonData;
14 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.tcp.common.rev231228.KeepalivesSupported;
15 import org.opendaylight.yangtools.yang.binding.YangFeature;
16 import org.opendaylight.yangtools.yang.binding.YangFeatureProvider;
17
18 /**
19  * Baseline features supported from {@code ietf-tcp-common.yang}.
20  */
21 @MetaInfServices
22 @NonNullByDefault
23 public final class IetfTcpCommonFeatureProvider implements YangFeatureProvider<IetfTcpCommonData> {
24     @Override
25     public Class<IetfTcpCommonData> boundModule() {
26         return IetfTcpCommonData.class;
27     }
28
29     @Override
30     public Set<? extends YangFeature<?, IetfTcpCommonData>> supportedFeatures() {
31         return Set.of(KeepalivesSupported.VALUE);
32     }
33 }