old_contents: #!/usr/bin/python
  ############################################################
  #
  # Copyright 2015 Interface Masters Technologies, Inc.
  #
  # Platform Driver for x86-64-im-n29xx-t40n-r0
  #
  ############################################################
  import os
  import struct
  import time
  import subprocess
  from onl.platform.base import *
  from onl.vendor.imt import *
  
  class OpenNetworkPlatformImplementation(OpenNetworkPlatformIMT):
  
      def model(self):
          # different IMT hw is supported by one image.
          return 'IM29XX'
  
      def platform(self):
          return 'x86-64-im-n29xx-t40n-r0'
  
      def _plat_info_dict(self):
          return {
              # TODO IMT: check how to improve this
              # different IMT hw is supported by one image.
              platinfo.LAG_COMPONENT_MAX : -1,
              platinfo.PORT_COUNT : -1
              }
  
      def _plat_oid_table(self):
          return None
  
      def get_environment(self):
          return "Not implemented."
  
  if __name__ == "__main__":
      import sys
  
      p = OpenNetworkPlatformImplementation()
      if len(sys.argv) == 1 or sys.argv[1] == 'info':
          print p
      elif sys.argv[1] == 'env':
          print p.get_environment()
  
new_contents: #!/usr/bin/python
  ############################################################
  #
  # Copyright 2015 Interface Masters Technologies, Inc.
  #
  # Platform Driver for x86-64-im-n29xx-t40n-r0
  #
  ############################################################
  import os
  import struct
  import time
  import subprocess
  from onl.platform.base import *
  from onl.vendor.imt import *
  
  class OpenNetworkPlatformImplementation(OpenNetworkPlatformIMT):
  
      def model(self):
          # different IMT hw is supported by one image.
          return 'IM29XX'
  
      def platform(self):
          return 'x86-64-im-n29xx-t40n-r0'
  
      def _plat_info_dict(self):
          return {
              # TODO IMT: check how to improve this
              # different IMT hw is supported by one image.
              platinfo.LAG_COMPONENT_MAX : -1,
              platinfo.PORT_COUNT : -1
              }
  
      def _plat_oid_table(self):
          return None
  
      def sys_oid_platform(self):
          return ".30324.29"
          
      def get_environment(self):
          return "Not implemented."
  
  if __name__ == "__main__":
      import sys
  
      p = OpenNetworkPlatformImplementation()
      if len(sys.argv) == 1 or sys.argv[1] == 'info':
          print p
      elif sys.argv[1] == 'env':
          print p.get_environment()
  
subject: Add IANA OID to file