github.com/cilium/cilium@v1.16.2/pkg/maps/srv6map/state.go (about)

     1  // SPDX-License-Identifier: Apache-2.0
     2  // Copyright Authors of Cilium
     3  
     4  package srv6map
     5  
     6  import (
     7  	"os"
     8  
     9  	"github.com/cilium/cilium/pkg/bpf"
    10  )
    11  
    12  const (
    13  	stateMapName4 = "cilium_srv6_state_v4"
    14  	stateMapName6 = "cilium_srv6_state_v6"
    15  )
    16  
    17  // We can delete this in v1.18
    18  func cleanupStateMap() {
    19  	os.Remove(bpf.MapPath(stateMapName4))
    20  	os.Remove(bpf.MapPath(stateMapName6))
    21  }