Skip to content

Commit

Permalink
Remove unnecessary call to sonic-cfggen
Browse files Browse the repository at this point in the history
  • Loading branch information
jleveque committed Mar 6, 2017
1 parent feba6ae commit 0fdd3c8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dockers/docker-dhcp-relay/config.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/bin/bash

MINIGRAPH_HOSTNAME=`sonic-cfggen -m /etc/sonic/minigraph.xml -v "minigraph_hostname"`
DEVICE_ROLE=`sonic-cfggen -m /etc/sonic/minigraph.xml -v "minigraph_devices['$MINIGRAPH_HOSTNAME']['type']"`
DEVICE_ROLE=`sonic-cfggen -m /etc/sonic/minigraph.xml -v "minigraph_devices[minigraph_hostname]['type']"`

if [ $DEVICE_ROLE != "ToRRouter" ]; then
echo "Device does not require DHCP relay. docker-dhcp-relay exiting..."
Expand Down

0 comments on commit 0fdd3c8

Please sign in to comment.