Skip to content
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

Open
wants to merge 64 commits into
base: apl-fy24
Choose a base branch
from

Conversation

karenhaining
Copy link

@karenhaining karenhaining commented Aug 14, 2024

Closes #4, #5, #6

@karenhaining karenhaining self-assigned this Aug 14, 2024
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'))
Copy link
Member

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

Comment on lines 125 to 128
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
Copy link
Member

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.

Copy link
Author

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.

@karenhaining karenhaining marked this pull request as ready for review September 4, 2024 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants