How can i write "ACL Description"?

  • 0
  • 1
  • Question
  • Updated 2 years ago
  • Answered
Is there a way to add a description when creating an ACL with 1 line?

// Normal ACL Create
entry permit_1
{ if match all { 
    # 1F-A side Network
    source-address 10.10.10.0/24 ;
    destination-address 10.10.20.0/24 ;
    protocol icmp ;
}
then {
    permit  ;
    count count_pertmit_1 ;
}
}

// 1 line command acl
entry pertmit_1 {if {source-address 10.10.10.0/24 ; destination-address 10.10.20.0/24 ; protocol icmp ;  } then {permit ; count count_pertmit_1 ; }}


I want to insert the description "# 1F-A side Network" as normal.
Do you know how to type in 1 Line command? 
Photo of KD

KD

  • 150 Points 100 badge 2x thumb

Posted 2 years ago

  • 0
  • 1
Photo of Brad Parker

Brad Parker, Technical Support Engineer

  • 3,592 Points 3k badge 2x thumb
Official Response
Hi Kyeong,
Commenting should be allowed. In the ACL solutions guide (link:http://extrcdn.extremenetworks.com/wp-content/uploads/2014/10/ACL_Solutions_Guide.pdf) , they use examples where commenting starting with a # is allowed. If you have any doubt, you can use vi to create the policy file and then use the "check policy <filename w/o extension>" and it will check the syntax of the policy file for you.

Hope this helps!

Thanks
Brad