io.lighty.gnmi.southbound.lightymodule.config.GnmiConfiguration Maven / Gradle / Ivy
The newest version!
/*
* Copyright (c) 2021 PANTHEON.tech s.r.o. All Rights Reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at https://www.eclipse.org/legal/epl-v10.html
*/
package io.lighty.gnmi.southbound.lightymodule.config;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonSetter;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import org.opendaylight.yangtools.yang.binding.YangModuleInfo;
/**
* Configuration of gNMI Southbound.
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class GnmiConfiguration {
//-----JSON configurables---
/**
* Optional list of paths from which ByPathYangLoaderService instances will be created and added to initialLoaders.
*/
private final List initialYangsPaths;
private Set yangModulesInfo;
public GnmiConfiguration() {
initialYangsPaths = new ArrayList<>();
}
@JsonSetter("initialYangsPaths")
public void addInitialYangsPaths(final List additionalPaths) {
this.initialYangsPaths.addAll(additionalPaths);
}
public List getInitialYangsPaths() {
return initialYangsPaths;
}
public Set getYangModulesInfo() {
return yangModulesInfo;
}
public void setYangModulesInfo(final Set yangModulesInfo) {
this.yangModulesInfo = yangModulesInfo;
}
}