Skip to content

Commit

Permalink
Added constants file
Browse files Browse the repository at this point in the history
  • Loading branch information
Johan committed Mar 4, 2022
1 parent 7938afc commit 36eb99d
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions contrib/p4_files/constants.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# File containing constants used by p4 execution

# Dict Keys
KEY_NODES = "nodes"
KEY_SWITCHES = "switches"
KEY_SERVER_PORT = "server_port"
KEY_TABLE_ENTRIES = "table_entries"
KEY_P4_INFO_PATH = "p4_info_path"
KEY_P4_PROG_NAME = "p4_prog_name"

# Global variables
NODE_IMAGE_NAME = "basic_node" # Should match name of the container name
SWITCH_IMAGE_NAME = "switch_sdk_9.5.0"
PTF_IMAGE_NAME = "ptf_tester"

SDE = "/home/p4/installations/bf-sde-9.5.0"
SDE_INSTALL = f"{SDE}/install"

# Container values
CONTAINER_BASE_DIR = "/app"

# Setup files keys
KEY_NETWORK_CONFIG = "network_config"
KEY_PTF_FOLDER_PATH = "ptf_test_folder"
KEY_LINKS = "links"

0 comments on commit 36eb99d

Please sign in to comment.