code: def change_interface_id(self, interface_id):
          
          splitted = str(interface_id).split('-')
          if1 = splitted[0]
          
          for interface in self.all_interfaces:
              # Set top level interface, this only uses a single value which
              # will be the leftmost interface
              if isinstance(interface, VlanInterface):
                  interface.interface_id = '{}.{}'.format(if1,
                      interface.interface_id.split('.')[-1])
                  
                  if interface.has_interfaces:
                      for sub_interface in interface.interfaces:
                          if isinstance(sub_interface, InlineInterface):
                              sub_interface.change_interface_id(interface_id)
                          else:
                              # VLAN interface only (i.e. CVI, NDI, etc)
                              sub_interface.change_interface_id(if1)  
              else:
                  if isinstance(interface, InlineInterface):
                      interface.change_interface_id(interface_id)
                  else:
                      interface.update(nicid=if1)
          
          self.interface_id = if1
          self.update()
docs: Change the interface ID for this interface. This can be used on any
          interface type. If the interface is an Inline interface, you must
          provide the ``interface_id`` in format '1-2' to define both
          interfaces in the pair. The change is committed after calling this
          method.
          ::
          
              itf = engine.interface.get(0)
              itf.change_interface_id(10)
              
          Or inline interface pair 10-11::
          
              itf = engine.interface.get(10)
              itf.change_interface_id('20-21')
          
          :param str,int interface_id: new interface ID. Format can be single
              value for non-inline interfaces or '1-2' format for inline.
          :raises UpdateElementFailed: changing the interface failed with reason
          :return: None