mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-upf.git
synced 2025-11-21 06:08:17 +00:00
always use specific PDR ids for access and core
Makes it easier to find the right one later. Related: SYS#6590 Change-Id: Ic343494001c70a84f3402ce5749d08e729551b26
This commit is contained in:
@@ -397,6 +397,11 @@ DEFUN(s_f_teid_choose, s_f_teid_choose_cmd,
|
|||||||
return CMD_SUCCESS;
|
return CMD_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
enum pdr_id_fixed {
|
||||||
|
PDR_ID_CORE = 1,
|
||||||
|
PDR_ID_ACCESS = 2,
|
||||||
|
};
|
||||||
|
|
||||||
int session_tunend_tx_est_req(struct vty *vty, const char **argv, int argc)
|
int session_tunend_tx_est_req(struct vty *vty, const char **argv, int argc)
|
||||||
{
|
{
|
||||||
struct pfcp_tool_session *session = vty->index;
|
struct pfcp_tool_session *session = vty->index;
|
||||||
@@ -475,7 +480,7 @@ int session_tunend_tx_est_req(struct vty *vty, const char **argv, int argc)
|
|||||||
.create_pdr_count = 2,
|
.create_pdr_count = 2,
|
||||||
.create_pdr = {
|
.create_pdr = {
|
||||||
{
|
{
|
||||||
.pdr_id = 1,
|
.pdr_id = PDR_ID_CORE,
|
||||||
.precedence = 255,
|
.precedence = 255,
|
||||||
.pdi = {
|
.pdi = {
|
||||||
.source_iface = OSMO_PFCP_SOURCE_IFACE_CORE,
|
.source_iface = OSMO_PFCP_SOURCE_IFACE_CORE,
|
||||||
@@ -492,7 +497,7 @@ int session_tunend_tx_est_req(struct vty *vty, const char **argv, int argc)
|
|||||||
.far_id = 1,
|
.far_id = 1,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
.pdr_id = 2,
|
.pdr_id = PDR_ID_ACCESS,
|
||||||
.precedence = 255,
|
.precedence = 255,
|
||||||
.pdi = {
|
.pdi = {
|
||||||
.source_iface = OSMO_PFCP_SOURCE_IFACE_ACCESS,
|
.source_iface = OSMO_PFCP_SOURCE_IFACE_ACCESS,
|
||||||
@@ -635,7 +640,7 @@ int session_tunmap_tx_est_req(struct vty *vty, const char **argv, int argc)
|
|||||||
.create_pdr_count = 2,
|
.create_pdr_count = 2,
|
||||||
.create_pdr = {
|
.create_pdr = {
|
||||||
{
|
{
|
||||||
.pdr_id = 1,
|
.pdr_id = PDR_ID_CORE,
|
||||||
.precedence = 255,
|
.precedence = 255,
|
||||||
.pdi = {
|
.pdi = {
|
||||||
.source_iface = OSMO_PFCP_SOURCE_IFACE_CORE,
|
.source_iface = OSMO_PFCP_SOURCE_IFACE_CORE,
|
||||||
@@ -650,7 +655,7 @@ int session_tunmap_tx_est_req(struct vty *vty, const char **argv, int argc)
|
|||||||
.far_id = 1,
|
.far_id = 1,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
.pdr_id = 2,
|
.pdr_id = PDR_ID_ACCESS,
|
||||||
.precedence = 255,
|
.precedence = 255,
|
||||||
.pdi = {
|
.pdi = {
|
||||||
.source_iface = OSMO_PFCP_SOURCE_IFACE_ACCESS,
|
.source_iface = OSMO_PFCP_SOURCE_IFACE_ACCESS,
|
||||||
|
|||||||
Reference in New Issue
Block a user