Set default bits type leaf value when such value is present.
Dues to constrained nature of bits type its difficult to set
example values.
JIRA: NETCONF-999
Change-Id: I4edccce7699a3b6ce69965779a8651cb3252c564
Signed-off-by: tobias.pobocik <tobias.pobocik@pantheon.tech>
Signed-off-by: Ivan Hrasko <ivan.hrasko@pantheon.tech>
}
property.set(ENUM_KEY, enumNames);
property.put(DEFAULT_KEY, enumNames.iterator().next() + " " + enumNames.get(enumNames.size() - 1));
+ bitsType.getDefaultValue().ifPresent(v -> setDefaultValue(property, (String) v));
return STRING_TYPE;
}