if (Uint32.valueOf(100).equals(serviceRate)) {
return StringConstants.SERVICE_TYPE_100GE_T;
}
+ if (Uint32.valueOf(400).equals(serviceRate)) {
+ return StringConstants.SERVICE_TYPE_400GE;
+ }
LOG.warn("Invalid service-rate {}", serviceRate);
return null;
{
"restconf":{
"inetAddress": "127.0.0.1",
- "httpPort": ODL_RESTCONF_PORT
+ "httpPort": ODL_RESTCONF_PORT,
+ "restconfServletContextPath":"/rests"
}
}
RESTCONF_PATH_PREFIX = {'rfc8040': '/rests',
'draft-bierman02': '/restconf'}
-if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True':
- RESTCONF_PATH_PREFIX['rfc8040'] = '/restconf'
if 'USE_ODL_RESTCONF_VERSION' in os.environ:
RESTCONF_VERSION = os.environ['USE_ODL_RESTCONF_VERSION']