code: def __intermediate_proto(self, interface, address):
          
          # proto defaults to static
          address_proto = address.pop('proto', 'static')
          if 'proto' not in interface:
              return address_proto
          else:
              # allow override on interface level
              return interface.pop('proto')
docs: determines UCI interface "proto" option