def build_acl_port(self, port, enabled=True):
if port is not None:<EOL><INDENT>if '<STR_LIT::>' in port:<EOL><INDENT>range = port.replace('<STR_LIT::>', '<STR_LIT:U+0020>')<EOL>acl = "<STR_LIT>" % {'<STR_LIT>': range}<EOL><DEDENT>else:<EOL><INDENT>acl = "<STR_LIT>" % {'<STR_LIT:port>': port}<EOL>if not enabled:<EOL><INDENT>acl += "<STR_LIT>"<EOL><DEDENT><DEDENT>return acl<EOL><DEDENT>
Build the acl for L4 Ports.