Hint – Naming ACLs for easier contextual help and auto-complete

You might like to name your ACLs with a suffix “ACL-” or  similar, so that when you type question mark  (‘?’) or TAB for auto-complete, you would automatically get the ACL name, without having to remember it (often cause of typos):

Example:

Arista(config)#show ip access-lists ? <==== asking for ACL name <WORD>; not listing all the ACLs by default as there could be too many
 WORD Access-list name
 summary Access list summary
 > Redirect output to URL
 >> Append redirected output to URL
 | Output modifiers
 <cr>
Arista(config)#show ip access-lists ACL? <==== the contextual help now lists all the ACL names starting with "ACL*". Auto-complete also works
ACL-MGT ACL-INTERNET WORD

Arista(config)#show ip access-lists ACL-INTERNET <==== auto-completed from "ACL-I" + TAB
ACL-INTERNET WORD

 

When you have a large amount of ACLs, to auto-complete even faster ACLs you see listed, then avoid similar suffixes such as “ACL-INTERNET-DMZ- somethingX“, “ACL-INTERNET-DMZ- somethingY“, etc

For example the below ACL naming is not helpful in reaching auto-complete faster, as they are all too similar; lot of typing and lookups are needed

Arista(config-if-Et1)#ip access-group ACL?
ACL-INSIDE ACL-INTERNET ACL-INTERNET-DMZ-INTERNAL ACL-INTERNET-DMZ-TIERS-A ACL-INTERNET-DMZ-TIERS-B ACL-INTERNET-DMZ-TIERS-C
ACL-INTERNET-ISP1 ACL-INTERNET-ISP2 ACL-TEST WORD

Arista(config-if-Et1)#ACL-INTERNET-DMZ-TIERS- <==== You would have to type most of the ACL before being able to auto-complete

 

Instead you could name them: “ACL-02-INTERNET-DMZ- somethingX“, this way you could reach the auto-complete state very quickly. For example:

s7152(config-if-Et1)#ip access-group ACL-?
ACL-01-INTERNET ACL-02-INTERNET-DMZ-TIERS-A ACL-03-INTERNET-DMZ-TIERS-B ACL-04-INTERNET-DMZ-TIERS-C ACL-05-INTERNET-DMZ-INTERNAL
ACL-06-INTERNET-ISP1 ACL-07-INTERNET-ISP2 WORD

s7152(config-if-Et1)#ip access-group ACL-02    <==== You can auto-complete very early, minimizing the typing. The generic part would never more than few characters.