multiple-channel configuration via yaml

Handles converting a yaml file mapping IPMI
channel to ethernet device and using this instead of
a hard-coded map.

Change-Id: Iedfe7cb52a2d0663b9c8a0f6f9d37fe733b63a58
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/scripts/writechannel.mako.cpp b/scripts/writechannel.mako.cpp
new file mode 100644
index 0000000..922611a
--- /dev/null
+++ b/scripts/writechannel.mako.cpp
@@ -0,0 +1,20 @@
+## This file is a template.  The comment below is emitted
+## into the rendered file; feel free to edit this file.
+// !!! WARNING: This is a GENERATED Code..Please do NOT Edit !!!
+
+#include "types.hpp"
+
+namespace ipmi
+{
+namespace network
+{
+
+extern const ChannelEthMap ethdevices = {
+% for channel,channelInfo in interfaceDict.iteritems():
+    {${channel},"${channelInfo['ifName']}"},
+% endfor
+};
+
+} // namespace network
+} // namespace ipmi
+