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

Fix #240 - Add support for weak references for some object refs. #241

Merged
merged 2 commits into from
Jun 29, 2019

Conversation

mxsasha
Copy link
Collaborator

@mxsasha mxsasha commented Jun 29, 2019

In IRRd 4.0.3, all references from members, mp-member,
mbrs-by-ref and member-of are weak references. Their
syntax is validated, e.g. for as-set members, values must
be a valid as-set name or a valid AS number. However, there
is no validation on whether the objects actually exist.
It is also possible to delete e.g. a route-set, even when
the object is still set in member-of in a route object,
or to reference a maintainer that does not exist in a
mbrs-by-ref.

@mxsasha mxsasha self-assigned this Jun 29, 2019
This adds weak reference support, which means a reference between
RPSL objects is checked for syntax, but not whether the object
exists. This commit enables weak refs for all existing strong
references of members, member-of, mp-members and mbrs-by-ref.
@coveralls
Copy link

coveralls commented Jun 29, 2019

Coverage Status

Coverage remained the same at 100.0% when pulling 1a10ef5 on weak-refs-240 into 13717a3 on master.

@mxsasha mxsasha merged commit 4a949b7 into master Jun 29, 2019
@mxsasha mxsasha deleted the weak-refs-240 branch June 29, 2019 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants