blob: 3e4e10c5e32e76248c4e82e90cedd8333fa4e793 [file] [log] [blame]
janani bf7060cd2017-03-28 19:06:30 +05301/*
2WARNING:
3This yang model is just for fuction ONOS opensource project demo purpose only,
4And is subject to change in future, Huawei does not commit provide compatibilty
5in commercial product.
6*/
7module ne-l3vpncomm-type {
8 namespace "l3vpn-comm-type";
9 prefix l3vpncomm-type;
10 organization "Huawei Technologies Co., Ltd";
11 contact "Huawei Industrial Base
12 Bantian, Longgang
13 Shenzhen 518129
14 People's Republic of China
15 Website: http://www.huawei.com
16 Email: support@huawei.com";
17 description "";
18 revision "2014-12-25" {
19 description "Initial version";
20 }
21 typedef l3vpncommonL3vpnPrefixType {
22 type enumeration {
23 enum "ipv4uni" {
24 value 0;
25 description "ipv4uni:";
26 }
27 enum "ipv6uni" {
28 value 1;
29 description "ipv6uni:";
30 }
31 }
32 description "";
33 }
34 typedef l3vpncommonVrfRtType {
35 type enumeration {
36 enum "export_extcommunity" {
37 value 0;
38 description "export-extcommunity:";
39 }
40 enum "import_extcommunity" {
41 value 1;
42 description "import-extcommunity:";
43 }
44 }
45 description "";
46 }
47 typedef ipv4Address {
48 type string {
49 length "0..255";
50 pattern "((([1-9]?[0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}
51 ([1-9]?[0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]))";
52 }
53 }
54}