Loading src/service/service/service_handlers/l3slice_ietfslice/L3SliceIETFSliceServiceHandler.py +6 −6 Original line number Diff line number Diff line Loading @@ -40,8 +40,8 @@ from .ConfigRules import ( class Ipv4Info(TypedDict): src_ip: str dst_ip: str src_lan: str dst_lan: str src_port: str dst_port: str vlan: str Loading Loading @@ -254,9 +254,9 @@ def extract_match_criterion_ipv4_info( ) -> Ipv4Info: for type_value in match_criterion["match-type"]: if type_value["type"] == "ietf-network-slice-service:source-ip-prefix": src_ip = type_value["value"][0] src_lan = type_value["value"][0] elif type_value["type"] == "ietf-network-slice-service:destination-ip-prefix": dst_ip = type_value["value"][0] dst_lan = type_value["value"][0] elif type_value["type"] == "ietf-network-slice-service:source-tcp-port": src_port = type_value["value"][0] elif type_value["type"] == "ietf-network-slice-service:destination-tcp-port": Loading @@ -264,8 +264,8 @@ def extract_match_criterion_ipv4_info( elif type_value["type"] == "ietf-network-slice-service:vlan": vlan = type_value["value"][0] return Ipv4Info( src_ip=src_ip, dst_ip=dst_ip, src_lan=src_lan, dst_lan=dst_lan, src_port=src_port, dst_port=dst_port, vlan=vlan, Loading Loading
src/service/service/service_handlers/l3slice_ietfslice/L3SliceIETFSliceServiceHandler.py +6 −6 Original line number Diff line number Diff line Loading @@ -40,8 +40,8 @@ from .ConfigRules import ( class Ipv4Info(TypedDict): src_ip: str dst_ip: str src_lan: str dst_lan: str src_port: str dst_port: str vlan: str Loading Loading @@ -254,9 +254,9 @@ def extract_match_criterion_ipv4_info( ) -> Ipv4Info: for type_value in match_criterion["match-type"]: if type_value["type"] == "ietf-network-slice-service:source-ip-prefix": src_ip = type_value["value"][0] src_lan = type_value["value"][0] elif type_value["type"] == "ietf-network-slice-service:destination-ip-prefix": dst_ip = type_value["value"][0] dst_lan = type_value["value"][0] elif type_value["type"] == "ietf-network-slice-service:source-tcp-port": src_port = type_value["value"][0] elif type_value["type"] == "ietf-network-slice-service:destination-tcp-port": Loading @@ -264,8 +264,8 @@ def extract_match_criterion_ipv4_info( elif type_value["type"] == "ietf-network-slice-service:vlan": vlan = type_value["value"][0] return Ipv4Info( src_ip=src_ip, dst_ip=dst_ip, src_lan=src_lan, dst_lan=dst_lan, src_port=src_port, dst_port=dst_port, vlan=vlan, Loading