# tbc_l3_feature_can.sh: Script for configuring TBC L3 CAN interfaces
# @copyright: Highly Confidential and Proprietary Information. Copyright (c) Zoox
#
# Date Created: July 17, 2020
# Author: smutha
#
# Author's note: Default for tbc-l3-feature1.zooxlabs.com

# Configure AI_CAN
ip link set can0 name AI_CAN
ip link set AI_CAN type can bitrate 500000
ip link set AI_CAN txqueuelen 4096
# Configure BDY2_CAN
ip link set can1 name BDY_CAN2
ip link set BDY_CAN2 type can bitrate 500000
ip link set BDY_CAN2 txqueuelen 4096
# Bring up all the interfaces
ifconfig AI_CAN up
ifconfig BDY_CAN2 up
