Commit 59e24952 authored by Leonidas Poulopoulos's avatar Leonidas Poulopoulos
Browse files

Add fragment type parsing in proxy

parent 17dd87df
...@@ -147,8 +147,14 @@ class Applier(object): ...@@ -147,8 +147,14 @@ class Applier(object):
route.match['dscp'].append(dscp.dscp) route.match['dscp'].append(dscp.dscp)
except: except:
pass pass
if route_obj.fragmenttype:
route.match['fragment'].append(route_obj.fragmenttype) try:
if route_obj.fragmenttype:
for frag in route_obj.fragmenttype.all():
route.match['fragment'].append(frag.fragmenttype)
except:
pass
for thenaction in route_obj.then.all(): for thenaction in route_obj.then.all():
if thenaction.action_value: if thenaction.action_value:
route.then[thenaction.action] = thenaction.action_value route.then[thenaction.action] = thenaction.action_value
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment