Skip to content

Platform Cisco wrong numeric protocol rendering #170

Open

Description

@zombah

Cisco platform policy numeric protocol always rendered as None
Example policy:

header {
  comment:: "Test policy for numeric proto"
  target:: cisco ProtoTest extended
  target:: ciscoxr ProtoTest extended
}
term allow-ntp-numeric-proto {
  comment:: "Allow example ntp servers"
  destination-address:: NTP_SERVERS
  protocol:: 50
  action:: accept
}
term default {
  action:: deny
}

Resulting acl for cisco:

! $Id:$
! $Date:$
! $Revision:$
no ip access-list extended ProtoTest
ip access-list extended ProtoTest
 remark $Id:$
 remark Test policy for numeric proto


 remark allow-ntp-numeric-proto
 remark Allow example ntp servers
 permit None any host 10.0.0.1
 permit None any host 10.0.0.2


 remark default
 deny ip any any

exit

And resulting Ciscoxr acl is correct:

! $Id:$
! $Date:$
! $Revision:$
no ipv4 access-list ProtoTest
ipv4 access-list ProtoTest
 remark $Id:$
 remark Test policy for numeric proto


 remark allow-ntp-numeric-proto
 remark Allow example ntp servers
 permit 50 any host 10.0.0.1
 permit 50 any host 10.0.0.2


 remark default
 deny ipv4 any any

exit
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