Skip to content

Compilation error with action delete #4

Description

@mbertrone

When the YANG data model includes an action called delete, like in firewall service [1], the generated code includes methods called delete(...).
This is causing a compilation error because delete is a c++ reserved keyword.

A possible solution could be a check in code generation tools that adds a suffix to delete method, e.g. deletes or delete_action.

[1]

    action delete {
      input {
        uses "firewall:rule-fields";
      }
    }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions