-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update CAmp to use the new ACE release #3
base: apl-fy24
Are you sure you want to change the base?
Conversation
src/camp/generators/create_sql.py
Outdated
version = val_or_none(self.admset.get_child(self.adm, models.Mdat, 'version')) | ||
org = val_or_none(self.admset.get_child(self.adm, models.Mdat, 'organization')) | ||
desc = escape_description_sql(val_or_none(self.admset.get_child(self.adm, models.Mdat, 'namespace'), 'description')) | ||
name = val_or_none(self.admset.get_child(self.adm, models.Ident, 'name')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The notion of "Mdat" (metadata) is replaced by alternatives:
- name is direct
self.adm.name
- ns is no longer a separate concept; the ADM name is the text form of namespace
- Others are named from keys of
MOD_META_KYWDS
src/camp/tools/camp.py
Outdated
for mdat in ('name', 'namespace', 'enum'): | ||
if admset.get_child(adm, ace.models.Mdat, mdat) is None: | ||
if admset.get_child(adm, ace.models.Ident, mdat) is None: | ||
LOGGER.error('The ADM is missing an "%s" metadata item', mdat) | ||
return 2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This check doesn't need to be performed by CAMP directly. ACE should check minimum content conditions.
pull updates from ep2-dev
also had to change one ADM enum)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Although this test passes right now, it currently doesn't validate the camp-generated output, as the camp-generated files from YANG ADMs aren't listed in the relevant CMakeLists.txt
of dtnma-tools
, so they don't get compiled in ./build.sh check
.
Closes #4, #5, #6