8000 Add Huawei VRP8 (CE16800) ACL generator plugin by Copilot · Pull Request #1 · jronnblom/aerleon · GitHub
[go: up one dir, main page]

Skip to content

Add Huawei VRP8 (CE16800) ACL generator plugin - #1

Draft
jronnblom with Copilot wants to merge 3 commits into
mainfrom
copilot/create-huawei-ce16800-plugin
Draft

jronnblom with Copilot wants to merge 3 commits into
mainfrom
copilot/create-huawei-ce16800-plugin

Conversation

Copilot AI commented Mar 2, 2026 •
Copy link
Copy Markdown

Adds huawei-vrp8 as a built-in ACL generator targeting Huawei CloudEngine switches (CE16800) running VRP8.

New module: aerleon/lib/huawei_vrp8.py

Inherits from cisco.Cisco / cisco.Term with VRP8-specific overrides:

  • ACL headers: acl name <name> advance / undo acl name <name> (IPv6: acl ipv6 name)
  • Rule format: auto-numbered rule 5, rule 10, … with mandatory source/destination keywords
  • Port matching: source-port/destination-port prefixes (vs. bare Cisco positional args)
  • ICMP: icmp-type <n> / icmp-code <n> keyword syntax
  • IPv6 addresses: space-separated prefix length (2001:db8:: 32) instead of CIDR; ::/0 correctly becomes any
  • Options: log→logging, fragments→fragment; established passes through unchanged
  • No consecutive-port expansion (Cisco workaround not needed on VRP8)
  • Section terminator: #; repository tags use # prefix
  • Supports extended, inet6, mixed filter types; raises UnsupportedHuaweiVRP8FilterError otherwise
  • Removes Cisco-specific address and dscp_match from supported tokens

Example output for a basic policy:

# $Id:$
undo acl name edge-filter
acl name edge-filter advance
 remark $Id:$
 remark block inbound noise
 rule 5 permit tcp source 10.0.0.0 0.0.0.255 source-port eq 80 destination any established
 rule 10 deny ip source any destination any
#

Registration

huawei-vrp8 added to BUILTIN_GENERATORS in plugin_supervisor.py.

Tests

19 regression tests written TDD-first covering: permit/deny rules, ports, TCP established, logging, IPv4/IPv6/mixed headers, ICMP types, verbatim passthrough, address wildcard and IPv6 prefix formats, header comments, section terminator, token validation, duplicate-term and unsupported-filter errors.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • support.huawei.com
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits March 2, 2026 20:31
Co-authored-by: jronnblom <480017+jronnblom@users.noreply.github.com>
…encing

Co-authored-by: jronnblom <480017+jronnblom@users.noreply.github.com>
Copilot AI changed the title [WIP] Add Huawei CE 16800 plugin based on VRP8 Add Huawei VRP8 (CE16800) ACL generator plugin Mar 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0