Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 975 Bytes

README.md

File metadata and controls

39 lines (30 loc) · 975 Bytes

go-pfcp-networking: PFCP Networking functionalities on top of go-pfcp

Warning

Still a Work In Progress. API may change before v1.0.0.

Features

  • PFCP Sessions handling (currently only PFCP Session establishment procedure is supported)

Getting started

UPF

ctx := context.TODO()
upNode := NewPFCPEntityUP(UPF_NODE_ID, UPF_IP_ADDR) // node id can be an IP Address or a FQDN
go upNode.ListenAndServeContext(ctx)
upnode.WaitReady(ctx)
// Access list of associations
associations := upNode.GetPFCPAssociations()
// Access list of sessions
sessions := upNode.GetPFCPSessions()

SMF

ctx := context.TODO()
cpNode := NewPFCPEntityCP(SMF_NODE_ID, SMF_IP_ADDR) // node id can be an IP Address or a FQDN
go cpNode.ListenAndServeContext(ctx)
cpNode.WaitReady(ctx)
association, _ := cpNode.NewEstablishedPFCPAssociation(ie.NewNodeIDHeuristic(UPFADDR))
session, _ := a.CreateSession(pdrs, fars)

Author

Louis Royer

License

MIT