140 lines
5.1 KiB
YANG
140 lines
5.1 KiB
YANG
module H3C-acl-action {
|
|
yang-version 1.1;
|
|
namespace "http://www.h3c.com/netconf/action:1.0-ACL";
|
|
prefix "acl-action";
|
|
import comware-basetype {
|
|
prefix "base";
|
|
}
|
|
organization "NEW H3C Technologies Co., Ltd.";
|
|
contact "Website: http://www.h3c.com";
|
|
description "The module entities for acl action.";
|
|
revision 2020-05-16 {
|
|
description "Initial revision.";
|
|
}
|
|
container ACL {
|
|
config false;
|
|
action Groups {
|
|
description "ACL group table
|
|
This table supports creating rows.";
|
|
input {
|
|
list Group {
|
|
description "ACL group";
|
|
key "GroupType GroupID";
|
|
leaf GroupType {
|
|
type enumeration {
|
|
enum 1;
|
|
enum 2;
|
|
enum 3;
|
|
enum 4;
|
|
}
|
|
mandatory true;
|
|
description "Group type. 1: IPv4, 2: IPv6, 3: MAC, 4: User.";
|
|
}
|
|
leaf GroupID {
|
|
type base:Basetype_UnsignedInteger32 {
|
|
range "2000..5999";
|
|
}
|
|
mandatory true;
|
|
description "ACL group ID. IPv4: 2000~5999, IPv6: 2000~3999";
|
|
}
|
|
leaf CountClear {
|
|
type empty;
|
|
mandatory true;
|
|
description "Clear the count.";
|
|
}
|
|
}
|
|
}
|
|
}
|
|
action NamedGroups {
|
|
description "ACL named group table
|
|
This table supports creating rows.";
|
|
input {
|
|
list Group {
|
|
description "ACL group";
|
|
key "GroupType GroupIndex";
|
|
leaf GroupType {
|
|
type enumeration {
|
|
enum 1;
|
|
enum 2;
|
|
enum 3;
|
|
enum 4;
|
|
}
|
|
mandatory true;
|
|
description "Group type. 1: IPv4, 2: IPv6, 3: MAC, 4: User.";
|
|
}
|
|
leaf GroupIndex {
|
|
type base:Basetype_String {
|
|
pattern "([2345][0-9]{3})|([a-zA-Z][^?
|
|
]{0,62})";
|
|
}
|
|
mandatory true;
|
|
description "Acl Group Name of Index.If it's Index, range from 2000 to 5999.";
|
|
}
|
|
leaf CountClear {
|
|
type empty;
|
|
mandatory true;
|
|
description "Clear the count.";
|
|
}
|
|
}
|
|
}
|
|
}
|
|
action PfilterApply {
|
|
description "Pfilter apply table
|
|
This table supports creating rows.";
|
|
input {
|
|
list Pfilter {
|
|
description "Pfilter apply";
|
|
key "AppObjType AppObjIndex AppDirection AppAclType AppAclGroup";
|
|
leaf AppObjType {
|
|
type enumeration {
|
|
enum 1;
|
|
enum 2;
|
|
enum 3;
|
|
}
|
|
mandatory true;
|
|
description "Object type. 1: interface, 2: vlan,3: global.";
|
|
}
|
|
leaf AppObjIndex {
|
|
type base:Basetype_NameAndIndexUnion;
|
|
mandatory true;
|
|
description "Object Index.";
|
|
}
|
|
leaf AppDirection {
|
|
type enumeration {
|
|
enum 1;
|
|
enum 2;
|
|
}
|
|
mandatory true;
|
|
description "Apply Direction.1:inbound, 2:outbound.";
|
|
}
|
|
leaf AppAclType {
|
|
type enumeration {
|
|
enum 1;
|
|
enum 2;
|
|
enum 3;
|
|
enum 4;
|
|
enum 5;
|
|
}
|
|
mandatory true;
|
|
description "ACL Group type. 1: IPv4, 2: IPv6, 3: MAC, 4: User-defined, 5: default.";
|
|
}
|
|
leaf AppAclGroup {
|
|
type base:Basetype_String {
|
|
pattern "(0)|([2345][0-9]{3})|([a-zA-Z][^?
|
|
]{0,62})";
|
|
}
|
|
mandatory true;
|
|
description "ACL Group Index.range from 2000 to 5999, Default: 0.";
|
|
}
|
|
leaf CountClear {
|
|
type empty;
|
|
mandatory true;
|
|
description "Clear the count.";
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|