Make (container) hostname the voltha instance id in consul
This makes it a lot easier to correlate logs, consul entries, and docker
commands and output.
diff --git a/voltha/main.py b/voltha/main.py
index 200043c..f18a21d 100755
--- a/voltha/main.py
+++ b/voltha/main.py
@@ -28,7 +28,7 @@
defs = dict(
consul=os.environ.get('CONSUL', 'localhost:8500'),
- instance_id=os.environ.get('INSTANCE_ID', '1'),
+ instance_id=os.environ.get('INSTANCE_ID', os.environ.get('HOSTNAME', '1')),
config=os.environ.get('CONFIG', './voltha.yml'),
interface=os.environ.get('INTERFACE', 'eth0'),
internal_host_address=os.environ.get('INTERNAL_HOST_ADDRESS', 'localhost'),