Skip to content

Commit

Permalink
Cleaning up srxlo generator as icmpv6 has been replaced by icmp6.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 547580974
  • Loading branch information
maddiesolz authored and Capirca Team committed Jul 12, 2023
1 parent 6e7f105 commit b5e81de
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions capirca/lib/srxlo.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,6 @@ class Term(juniper.Term):

def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.term.protocol = ['icmp6' if x == 'icmpv6' else x
for x in self.term.protocol]
self.term.protocol_except = [
'icmp6' if x == 'icmpv6' else x for x in self.term.protocol_except
]

def NormalizeIcmpTypes(self, icmp_types, protocols, af):
protocols = ['icmpv6' if x == 'icmp6' else x for x in protocols]
return super().NormalizeIcmpTypes(icmp_types, protocols, af)


class SRXlo(juniper.Juniper):
Expand Down

0 comments on commit b5e81de

Please sign in to comment.