Skip to content

Commit 76ca7a0

Browse files
committed
Update API to no longer use prefix
1 parent 3ac9afc commit 76ca7a0

2 files changed

Lines changed: 15 additions & 3 deletions

File tree

jsonapi/match.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ package jsonapi
77
import "net/netip"
88

99
type Match struct {
10-
UEIpPrefix netip.Prefix `json:"ue-ip-prefix,omitempty"`
11-
GNBIpPrefix netip.Prefix `json:"gnb-ip-prefix,omitempty"`
12-
Teid uint32 `json:"teid,omitempty"`
10+
Gtp MatchGtp `json:"gtp,omitempty"`
11+
Src netip.Addr `json:"source-ip"`
12+
Dst netip.Addr `json:"destination-ip"`
1313
}

jsonapi/match_gtp.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// Copyright 2024 Louis Royer and the NextMN-json-api contributors. All rights reserved.
2+
// Use of this source code is governed by a MIT-style license that can be
3+
// found in the LICENSE file.
4+
// SPDX-License-Identifier: MIT
5+
package jsonapi
6+
7+
import "net/netip"
8+
9+
type MatchGtp struct {
10+
Src netip.Addr `json:"source-ip"`
11+
Teid uint32 `json:"teid"`
12+
}

0 commit comments

Comments
 (0)