AETHER-2837 support subnet in Application filter
Change-Id: I5c8e3b3b0ab73cf8e9223fd754519bf46a673746
diff --git a/config-models/aether-2.0.x/files/yang/onf-aether-types.yang b/config-models/aether-2.0.x/files/yang/onf-aether-types.yang
index e0d655d..5e6fbfd 100755
--- a/config-models/aether-2.0.x/files/yang/onf-aether-types.yang
+++ b/config-models/aether-2.0.x/files/yang/onf-aether-types.yang
@@ -189,4 +189,23 @@
description "long description field";
}
}
+
+ typedef ipv4-subnet {
+ type string {
+ pattern
+ '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}'
+ + '([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])'
+ + '(/([0-9]|[1-2][0-9]|3[0-2]))';
+ }
+ description "IPv4 network in CIDR notation";
+ }
+
+ typedef host-or-network {
+ type union {
+ type inet:host;
+ type ipv4-subnet;
+ }
+ description "hostname, ip-address, or network";
+ }
}
+
\ No newline at end of file