All olt-oftest flow and group commands propagate

Change-Id: Iddde6ddddd5a0ca5100ee95d55fedd247ab7f263
diff --git a/ofagent/main.py b/ofagent/main.py
index a8bfe7f..0d8c8d4 100755
--- a/ofagent/main.py
+++ b/ofagent/main.py
@@ -16,17 +16,36 @@
 #
 
 """TODO This is a POC placeholder """
+import os
+
 import grpc
+import yaml
 from twisted.internet import reactor
 
 from agent import Agent
+from common.utils.structlog_setup import setup_logging
 from protos import voltha_pb2
 
 from grpc_client import GrpcClient
 
 
+def load_config(path):
+    if path.startswith('.'):
+        dir = os.path.dirname(os.path.abspath(__file__))
+        path = os.path.join(dir, path)
+    path = os.path.abspath(path)
+    with open(path) as fd:
+        config = yaml.load(fd)
+    return config
+
+
 if __name__ == '__main__':
 
+    # Load config and setup logging
+    config = load_config('./ofagent.yml')
+    setup_logging(config.get('logging', {}), '1')
+
+
     # Create grpc channel to Voltha and grab client stub
     channel = grpc.insecure_channel('localhost:50055')