Test: Add quagga shell api/rpc command to cordtest server.

Change-Id: I7e884c610d6de66bc29fcbc3214c6c62800c0728
diff --git a/src/test/utils/CordTestServer.py b/src/test/utils/CordTestServer.py
index 299e7c2..e263939 100644
--- a/src/test/utils/CordTestServer.py
+++ b/src/test/utils/CordTestServer.py
@@ -74,6 +74,16 @@
         except: pass
         return 'DONE'
 
+    def __run_shell_quagga(self, cmd = None):
+        ret = 0
+        if cmd is not None:
+            exec_cmd = 'docker exec {} {}'.format(Quagga.NAME, cmd)
+            ret = os.system(exec_cmd)
+        return ret
+
+    def run_shell_quagga(self, kwargs):
+        return self.__run_shell_quagga(**kwargs)
+
     def restart_radius(self):
         print('Restarting RADIUS Server')
         Radius(restart = True)
@@ -138,6 +148,15 @@
     return False
 
 @nottest
+def __cord_test_quagga_shell(**kwargs):
+    return rpc_server_instance().run_shell_quagga(kwargs)
+
+@nottest
+def cord_test_quagga_shell(cmd = None):
+    '''Send QUAGGA shell cmd to server'''
+    return __cord_test_quagga_shell(cmd = cmd)
+
+@nottest
 def cord_test_quagga_stop():
     data = rpc_server_instance().stop_quagga()
     if data == 'DONE':