RPSL - Interpretation of continuation lines vs multiple instances of the same attribute #633
-
Consider the following snippit of RPSL submitted to IRRd as part of an RPSL object:
When queried with graphql, the result is:
I understand that '+', and whitespace in the first column of a line indicates a "continuation" line. but why not treat those the same as a second occurrence of the same attribute. I don't have anyway in graphql to discover formatting of the original RPSL except through objectText. I would have thought the above RPSL would have resulted in an array of 5 string elements, the 3rd of which is empty. I'm not suggesting a change here. Just curious about why the IRRd implementation was chosen. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
My thoughts here were that RPSL is always a set of key-value pairs, though unlike many structures, the keys are not unique. Therefore, I see this as two key-value pairs. The line split with continuation characters is merely syntactic sugar. I didn't design much specifically for remarks, as IRRd never concerns itself with their contents. And any parsing anyone else wants to do has to be quite flexible and resilient anyways. |
Beta Was this translation helpful? Give feedback.
My thoughts here were that RPSL is always a set of key-value pairs, though unlike many structures, the keys are not unique. Therefore, I see this as two key-value pairs. The line split with continuation characters is merely syntactic sugar.
I didn't design much specifically for remarks, as IRRd never concerns itself with their contents. And any parsing anyone else wants to do has to be quite flexible and resilient anyways.