Skip to content

Template Withdrawal broken on encode and unimplemented on decode #49

Open

Description

@britram

Pre-existing 0.9 Template Withdrawal bugs in ipfix/message.py and ipfix/template.py (fixed in #34):

  • MessageBuffer.delete_template(tid, export=True) crashed with AttributeError because it called self.export_template_withdrawal(...) instead of self._export_template_withdrawal(...), and left stale (self.odid, tid) entries in self.accepted_tids.
  • template.withdrawal_length() returned an IpfixEncodeError instance instead of raising it on invalid set IDs.
  • MessageBuffer.record_iterator() / template.decode_template_from() did not implement Template Withdrawal or Options Template Withdrawal (count == 0, including All-Templates Withdrawal TID 2/3, # FIXME handle withdrawal), overwriting active templates with 0-IE templates instead of removing them.
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions