Do not create (empty) latency loss file if disabled
[samplevnf.git] / VNFs / DPPD-PROX / gen / l3-ipv4.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 local lpm4 = {}
18 lpm4.next_hops = {
19    {id = 0,  port_id = 0, ip = ip("192.168.122.240")},
20    {id = 1,  port_id = 0, ip = ip("192.168.122.246")},
21    {id = 2,  port_id = 0, ip = ip("192.168.122.247")}
22 }
23
24 lpm4.routes = {
25    {cidr = {ip = ip("192.168.123.0"), depth = 24}, next_hop_id = 0},
26    {cidr = {ip = ip("192.168.124.0"), depth = 24}, next_hop_id = 1},
27    {cidr = {ip = ip("192.168.125.0"), depth = 24}, next_hop_id = 2},
28 }
29 return lpm4