use of org.omecproject.up4.config.Up4Config in project up4 by omec-project.
the class ConfigPscEncap method doExecute.
@Override
protected void doExecute() throws Exception {
if (enable == null) {
return;
}
NetworkConfigService netCfgService = get(NetworkConfigService.class);
CoreService coreService = get(CoreService.class);
ApplicationId appId = coreService.getAppId(APP_NAME);
Up4Config config = netCfgService.getConfig(appId, Up4Config.class);
if (config == null) {
print("No UP4 netcfg has been pushed yet");
return;
}
config.setPscEncap(enable);
netCfgService.applyConfig(appId, Up4Config.class, config.node());
}
use of org.omecproject.up4.config.Up4Config in project up4 by omec-project.
the class Up4DeviceManager method updateConfig.
private void updateConfig() {
Up4Config up4Config = netCfgService.getConfig(appId, Up4Config.class);
if (up4Config != null) {
upfUpdateConfig(up4Config);
}
// We might end-up with requests for buffering but DBUF is not ready/configured yet.
// Being DBUF best effort should not be a big deal if that happens at very beginning
Up4DbufConfig dbufConfig = netCfgService.getConfig(appId, Up4DbufConfig.class);
if (dbufConfig != null) {
dbufUpdateConfig(dbufConfig);
}
}
Aggregations