Merge "Fix changing impair delay through command line"
[samplevnf.git] / VNFs / DPPD-PROX / config / cpe_table_short.lua
1 --
2 -- Copyright (c) 2010-2017 Intel Corporation
3 --
4 -- Licensed under the Apache License, Version 2.0 (the "License");
5 -- you may not use this file except in compliance with the License.
6 -- You may obtain a copy of the License at
7 --
8 --     http://www.apache.org/licenses/LICENSE-2.0
9 --
10 -- Unless required by applicable law or agreed to in writing, software
11 -- distributed under the License is distributed on an "AS IS" BASIS,
12 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 -- See the License for the specific language governing permissions and
14 -- limitations under the License.
15 --
16
17 t2={}
18 svlan_id=0
19 ip1=2^24*192 + 2^16*168 + 2^8*0 + 0;
20 for id1=0,3,1 do
21   for cvlan_id=0,255,1 do
22     mac_s=string.format("00:00:01:00:00:%02x", cvlan_id);
23     table.insert(t2,{dest_id=id1, gre_id=0, svlan_id=svlan_id, cvlan_id=cvlan_id, cidr = {ip=ip(ip1),depth=29}, mac = mac(mac_s), user_id=cvlan_id});
24     ip1=ip1+8
25     table.insert(t2,{dest_id=id1, gre_id=0, svlan_id=svlan_id+1, cvlan_id=cvlan_id, cidr = {ip=ip(ip1),depth=29}, mac = mac(mac_s), user_id=cvlan_id});
26     ip1=ip1+8
27   end
28   svlan_id=svlan_id+16
29 end
30
31 return t;
32