File tree Expand file tree Collapse file tree 5 files changed +5
-5
lines changed
tensorflow_distributed_mnist Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ DOCKER_NET=`ip route | grep $SAGEMAKER_INTERFACE | cut -d" " -f1`
5656DOCKER_IP=` ip route | grep $SAGEMAKER_INTERFACE | cut -d" " -f12`
5757
5858# check if both IPTables and the Route Table are OK.
59- IPTABLES_PATCHED=` sudo iptables -S PREROUTING -t nat | grep -c 169.254.0.2 `
59+ IPTABLES_PATCHED=` sudo iptables -S PREROUTING -t nat | grep -c $SAGEMAKER_INTERFACE `
6060ROUTE_TABLE_PATCHED=` sudo ip route show table agent | grep -c $SAGEMAKER_INTERFACE `
6161
6262if [ $RUNNING_ON_NOTEBOOK_INSTANCE -gt 0 ]; then
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ DOCKER_NET=`ip route | grep $SAGEMAKER_INTERFACE | cut -d" " -f1`
5656DOCKER_IP=` ip route | grep $SAGEMAKER_INTERFACE | cut -d" " -f12`
5757
5858# check if both IPTables and the Route Table are OK.
59- IPTABLES_PATCHED=` sudo iptables -S PREROUTING -t nat | grep -c 169.254.0.2 `
59+ IPTABLES_PATCHED=` sudo iptables -S PREROUTING -t nat | grep -c $SAGEMAKER_INTERFACE `
6060ROUTE_TABLE_PATCHED=` sudo ip route show table agent | grep -c $SAGEMAKER_INTERFACE `
6161
6262if [ $RUNNING_ON_NOTEBOOK_INSTANCE -gt 0 ]; then
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ DOCKER_NET=`ip route | grep $SAGEMAKER_INTERFACE | cut -d" " -f1`
5656DOCKER_IP=` ip route | grep $SAGEMAKER_INTERFACE | cut -d" " -f12`
5757
5858# check if both IPTables and the Route Table are OK.
59- IPTABLES_PATCHED=` sudo iptables -S PREROUTING -t nat | grep -c 169.254.0.2 `
59+ IPTABLES_PATCHED=` sudo iptables -S PREROUTING -t nat | grep -c $SAGEMAKER_INTERFACE `
6060ROUTE_TABLE_PATCHED=` sudo ip route show table agent | grep -c $SAGEMAKER_INTERFACE `
6161
6262if [ $RUNNING_ON_NOTEBOOK_INSTANCE -gt 0 ]; then
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ DOCKER_NET=`ip route | grep $SAGEMAKER_INTERFACE | cut -d" " -f1`
5656DOCKER_IP=` ip route | grep $SAGEMAKER_INTERFACE | cut -d" " -f12`
5757
5858# check if both IPTables and the Route Table are OK.
59- IPTABLES_PATCHED=` sudo iptables -S PREROUTING -t nat | grep -c 169.254.0.2 `
59+ IPTABLES_PATCHED=` sudo iptables -S PREROUTING -t nat | grep -c $SAGEMAKER_INTERFACE `
6060ROUTE_TABLE_PATCHED=` sudo ip route show table agent | grep -c $SAGEMAKER_INTERFACE `
6161
6262if [ $RUNNING_ON_NOTEBOOK_INSTANCE -gt 0 ]; then
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ DOCKER_NET=`ip route | grep $SAGEMAKER_INTERFACE | cut -d" " -f1`
5656DOCKER_IP=` ip route | grep $SAGEMAKER_INTERFACE | cut -d" " -f12`
5757
5858# check if both IPTables and the Route Table are OK.
59- IPTABLES_PATCHED=` sudo iptables -S PREROUTING -t nat | grep -c 169.254.0.2 `
59+ IPTABLES_PATCHED=` sudo iptables -S PREROUTING -t nat | grep -c $SAGEMAKER_INTERFACE `
6060ROUTE_TABLE_PATCHED=` sudo ip route show table agent | grep -c $SAGEMAKER_INTERFACE `
6161
6262if [ $RUNNING_ON_NOTEBOOK_INSTANCE -gt 0 ]; then
You can’t perform that action at this time.
0 commit comments