Update OMEC user plane for ip fragmentation support
Change-Id: I4272b7a2f2ac3046a04f253932b69e5718a9f2fa
diff --git a/omec/omec-user-plane/files/route_control.py b/omec/omec-user-plane/files/route_control.py
index 11621d6..1d9a169 100755
--- a/omec/omec-user-plane/files/route_control.py
+++ b/omec/omec-user-plane/files/route_control.py
@@ -1,6 +1,5 @@
#!/usr/bin/env python
# SPDX-License-Identifier: Apache-2.0
-# Copyright 2020-present Open Networking Foundation
# Copyright(c) 2019 Intel Corporation
import argparse
@@ -104,7 +103,7 @@
iprange = item.iprange
prefix_len = item.prefix_len
route_module = item.iface + 'Routes'
- last_module = item.iface + 'FastPO'
+ last_module = item.iface + 'Merge'
gateway_mac_str = '{:X}'.format(gateway_mac)
print('Adding route entry {}/{} for {}'.format(iprange, prefix_len,
route_module))
@@ -222,7 +221,7 @@
iprange = item.iprange
prefix_len = item.prefix_len
route_module = item.iface + 'Routes'
- last_module = item.iface + 'FastPO'
+ last_module = item.iface + 'Merge'
neighbor_exists = neighborcache.get(item.neighbor_ip)
if neighbor_exists:
@@ -336,16 +335,13 @@
del item
return
- # Fetch prefix_len
- item.prefix_len = msg['dst_len']
-
# if mac is 0, send ARP request
if gateway_mac == 0:
print('Adding entry {} in arp probe table'.format(item.iface))
probe_addr(item, ipdb.interfaces[item.iface].address)
else: # if gateway_mac is set
- print('Linking module {}Routes with {}FastPO (Dest MAC: {})'.format(
+ print('Linking module {}Routes with {}Merge (Dest MAC: {})'.format(
item.iface, item.iface, _mac))
link_route_module(bess, gateway_mac, item)
@@ -362,7 +358,7 @@
item = arpcache.get(neighbor_ip)
if item:
- print('Linking module {}Routes with {}FastPO (Dest MAC: {})'.format(
+ print('Linking module {}Routes with {}Merge (Dest MAC: {})'.format(
item.iface, item.iface, gateway_mac))
# Add route entry, and add item in the registered neighbor cache