mirror of
				https://gitea.osmocom.org/cellular-infrastructure/osmo-upf.git
				synced 2025-11-04 05:53:29 +00:00 
			
		
		
		
	pfcp-tool: always use specific PDR ids for access and core
Makes it easier to find the right one later. This will be used to fetch the UPF chosen TEIDs from PFCP responses in upcoming "n-sessions [4/4]" I74a21cc31296ab89a2acda1da8ae9693c1992e66. Related: SYS#6590 Change-Id: Ic343494001c70a84f3402ce5749d08e729551b26
This commit is contained in:
		
				
					committed by
					
						
						osmith
					
				
			
			
				
	
			
			
			
						parent
						
							6859de09d2
						
					
				
				
					commit
					e16bb2826b
				
			@@ -397,6 +397,11 @@ DEFUN(s_f_teid_choose, s_f_teid_choose_cmd,
 | 
			
		||||
	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)
 | 
			
		||||
{
 | 
			
		||||
	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 = {
 | 
			
		||||
			{
 | 
			
		||||
				.pdr_id = 1,
 | 
			
		||||
				.pdr_id = PDR_ID_CORE,
 | 
			
		||||
				.precedence = 255,
 | 
			
		||||
				.pdi = {
 | 
			
		||||
					.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,
 | 
			
		||||
			},
 | 
			
		||||
			{
 | 
			
		||||
				.pdr_id = 2,
 | 
			
		||||
				.pdr_id = PDR_ID_ACCESS,
 | 
			
		||||
				.precedence = 255,
 | 
			
		||||
				.pdi = {
 | 
			
		||||
					.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 = {
 | 
			
		||||
			{
 | 
			
		||||
				.pdr_id = 1,
 | 
			
		||||
				.pdr_id = PDR_ID_CORE,
 | 
			
		||||
				.precedence = 255,
 | 
			
		||||
				.pdi = {
 | 
			
		||||
					.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,
 | 
			
		||||
			},
 | 
			
		||||
			{
 | 
			
		||||
				.pdr_id = 2,
 | 
			
		||||
				.pdr_id = PDR_ID_ACCESS,
 | 
			
		||||
				.precedence = 255,
 | 
			
		||||
				.pdi = {
 | 
			
		||||
					.source_iface = OSMO_PFCP_SOURCE_IFACE_ACCESS,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user