-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #87 from JonasDann/master
Fixed flow_alveo.sh environment issue
- Loading branch information
Showing
5 changed files
with
41 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Script to set up IP and MAC address environment variables and insert the driver because environment is not initialized when executing through ssh from a remote server (environment is only initialized when MOTD is shown). | ||
|
||
CLI_PATH=/opt/sgrt/cli | ||
|
||
IP_address=$($CLI_PATH/sgutil get network -d 1 | awk '$1 == "1:" {print $2}') | ||
MAC_address=$($CLI_PATH/sgutil get network -d 1 | awk '$1 == "1:" {print $3}' | tr -d '()') | ||
qsfp_ip=$($CLI_PATH/common/address_to_hex IP $IP_address) | ||
qsfp_mac=$($CLI_PATH/common/address_to_hex MAC $MAC_address) | ||
echo "** IP_ADDRESS: $qsfp_ip" | ||
echo "** MAC_ADDRESS: $qsfp_mac" | ||
|
||
sudo insmod coyote_drv.ko ip_addr=$qsfp_ip mac_addr=$qsfp_mac |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters